tabbed window not staying maximized |
Post Reply |
Author | |
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
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.
|
|
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
|
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |