By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,573 Members | 1,812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,573 IT Pros & Developers. It's quick & easy.

MDI Children WOn't Stay Maximized

P: n/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?
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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.)

Nov 20 '05 #2

P: n/a
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.)

Nov 20 '05 #3

P: n/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.

""台灣微軟技術處支援部"" <lu******@online.microsoft.com> wrote in message
news:Qn*************@cpmsftngxa06.phx.gbl...
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.)

Nov 20 '05 #4

P: n/a
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.)

Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.