Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - tabbed window not staying maximized
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

tabbed window not staying maximized

 Post Reply Post Reply
Author
Message
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Topic: tabbed window not staying maximized
    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.
Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post 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.
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.125 seconds.