Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Keeping MDI child form maximized

Status
Not open for further replies.

robman70

Technical User
Aug 6, 2002
90
I have an mdi form that has a flexgrid on it, when a user clicks on a column it will open another mdi child with more information but it changes the original form to a small square rather than being maximized. i tried setting .windowstate = 2 but then it maximizes over the properties window that opened. I want the new window to open but the original to stay maximized behind the new window. any help appreciated
 

Try to change the form's border style as fixed single

Madhivanan
 
Hi Robman:

Maybe this code would be helpful:
Code:
Private Sub MDIForm_Resize()
    If Me.WindowState <> vbMaximized Then
        Me.WindowState = vbMaximized
    End If
End Sub

Place it in the MDI Form's code.

Cassandra
 
Thanks for the suggestions, Madhi: the new form that is about to open is already set to fixed single, and the the form that is opening it cannot be set to fixed single becuase it is the startup form and since its windowstate is set to maximized if i make its border style fixed it wont show at all. Casandra: I'm pretty sure that if i try to change the original forms windowstate anytime after the new pop up window has been opened it will put the pop up window behind it. Maybe if someone knows how to keep an mdi child on top of all others that would help, then i could have the pop up open then maximize the form that called it, but make the pop up stay on top. Thanks for the suggestions though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top