MDI Children WOn't Stay Maximized

  • Thread starter Thread starter a
  • Start date Start date
A

a

Hi,

I am a guy who is annoyed by windows that cascade when I switch between 2
forms in an MDI app. I have set the &Window menu item on my Parent MDI form
to MDIList = True, and when I switch between forms, I always want the form
to be maximized.

How should I set this up?
 
You may add some code in the child form's GotFocus event, for example:

Private Sub ChildForm1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles MyBase.GotFocus
Me.WindowState = FormWindowState.Maximized
End Sub


Will this resolve the problem?



Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Hello,

Is my suggestion able to help on this issue? Do you have any concern on it?

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
No, this doesn't do it.

What Border type should I be using?

When I use the Built In MDI List Tracking Toolbar, and switch the focus to
another form, both forms are 'cascaded'

Please help.
 
I am not sure what the "built in MDI List tracking Toolbar"? Is it a third
party components?

Normally, we can switch between child forms with parernt form's menu, for
example, with following code:

Me.MdiChildren(0).Focus()
Me.MdiChildren(0).WindowState = FormWindowState.Maximized

Above code will setfocus to a child from and maximize it.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 
Back
Top