Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Commandbars Strange Behaviour in VB.NET
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Commandbars Strange Behaviour in VB.NET

 Post Reply Post Reply
Author
Message
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post Topic: Commandbars Strange Behaviour in VB.NET
    Posted: 08 June 2009 at 3:20pm
In the attached sample an MDI form is shown with an mdi child form.
in the form load event i change the windowstate of the mdi form to
FormWindowState.Maximized and when run its working the way it should.

now drop a commandbar into the mdi form and run the project.
the form will never get maximized. :(

is there any workaround? TIA

im using vs2008 and activex suite 12.1.1

uploads/20090608_151949_StrangeBehaviou.rar
Back to Top
RedPsyrus View Drop Down
Groupie
Groupie
Avatar

Joined: 17 November 2008
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedPsyrus Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2009 at 3:32pm
Hi,, simply you can change the proprety of the windows state at the design time to Maximized or :
        Dim f2 As New Form2

        f2.MdiParent = Me
        f2.Show()
        Me.WindowState = FormWindowState.Maximized

I'm using visual studio 2008 pro and codejock 12.1.1
Back to Top
younicke View Drop Down
Senior Member
Senior Member
Avatar

Joined: 11 March 2005
Status: Offline
Points: 107
Post Options Post Options   Thanks (0) Thanks(0)   Quote younicke Quote  Post ReplyReply Direct Link To This Post Posted: 09 June 2009 at 7:06pm
thanks.

so i will load my formstate right after showing the mdi child..

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.