|
-
Jul 7th, 2004, 01:59 PM
#1
Thread Starter
Junior Member
MDI behavior is strange. please help
Is there away to prevent an MDI child form from being auto maximized?
The problem I have is this. I have an mdi application that contains 2 mdi child forms. When I show the first form and maximize it so that it fills the mdi window I can't load the second form non maximized.
Vb.net automatically maximizes the second form despite the fact that I didn't tell it too! If I then restore the second form to its normal size it then does the same with the first form. This is all very strange to me. When you maximize one form inside an MDI window it maximizes them all. how do you stop this from happening?
What I want is the first form to stay maximized and the second for to appear on top not maximized.
here is the code I'm using to display the second form (the one I don't want to be maximized)
I'm loading this form from the menu so 'ME' is the MDI Parent form
Dim frm As frm2
frm = New frm2
frm.MdiParent = Me
frm.Show()
When I click on the menu and execute the code above I have the first form maximized. I don't want this to happen. I want frm2 to appear inside the MDI form and I don't want it to be maximized.
I've tried changing the window style but that dosn't work either. I also don't want to call frm2.ShowDialog() because it makes the form appear outside the MDI window.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|