Print Page | Close Window

tabbed window not staying maximized

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=9597
Printed Date: 08 October 2024 at 8:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: tabbed window not staying maximized
Posted By: jcollier
Subject: tabbed window not staying maximized
Date Posted: 15 February 2008 at 2:25pm
I have a tabworkspace in a mdi app.  If I open a form and have it maximized it's fine.  If I open a different form (which creates a second tab, as I want) and it is maximized, the first form gets resized to WindowState = vbNormal.  I am not telling it to do this.  I want all forms to stay maximized in the mdi form all the time.



Replies:
Posted By: jcollier
Date Posted: 15 February 2008 at 3:56pm
Ok, I figured it out.  In the second form that gets opened, I had the line:

Me.WindowState = vbMinimize in the unload event.

Probably some useless GUI effect from the past.  Taking this line out has fixed the problem.  I'm not sure why minimizing Form2 would affect the WindowState of Form1 in a TabWorkspace but it seems that this was the cause.



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