Print Page | Close Window

Commandbars Strange Behaviour in VB.NET

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=14472
Printed Date: 09 June 2024 at 10:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Commandbars Strange Behaviour in VB.NET
Posted By: younicke
Subject: Commandbars Strange Behaviour in VB.NET
Date 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 - uploads/20090608_151949_StrangeBehaviou.rar



Replies:
Posted By: RedPsyrus
Date 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


Posted By: younicke
Date Posted: 09 June 2009 at 7:06pm
thanks.

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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net