MDI Children WOn't Stay Maximized

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?
 
M

MSFT

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.)
 
¥

¥xÆW·L³n§Þ³N³B¤ä´©³¡

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.)
 
A

a

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.
 
M

MSFT

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.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top