468,512 Members | 1,346 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,512 developers. It's quick & easy.

Maximizing a MDI child form programmatically

How do I get a MDI child form to maximize itself inside the MDI parent form
when it loads?

TIA
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
Nov 20 '05 #1
11 5530
"Simon Jefferies" <si****@headfirst.co.uk> schrieb
How do I get a MDI child form to maximize itself inside the MDI
parent form when it loads?


Set the Windowstate property. This can also be done in the property window.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2
I Use:

LoadForm1.MdiParent.MaximumSize

HTH
MCN

"Simon Jefferies" <si****@headfirst.co.uk> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
How do I get a MDI child form to maximize itself inside the MDI parent form when it loads?

TIA
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-

Nov 20 '05 #3
Please can you give me an example of how you used MaximumSize?

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:tN********************@karoo.co.uk...
I Use:

LoadForm1.MdiParent.MaximumSize

HTH
MCN

"Simon Jefferies" <si****@headfirst.co.uk> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
How do I get a MDI child form to maximize itself inside the MDI parent

form
when it loads?

TIA
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-


Nov 20 '05 #4
I tried to set the windowstate property in the form load event to maximized,
but nothing happened.

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de...
"Simon Jefferies" <si****@headfirst.co.uk> schrieb
How do I get a MDI child form to maximize itself inside the MDI
parent form when it loads?


Set the Windowstate property. This can also be done in the property
window.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5
Probably best doing it this way, althought im a newbie so don`t quote me,
however it works for me:-

Dim LoadWelcomeScreen As New frmWelcomeScreen()
LoadWelcomeScreen.MdiParent = Me
LoadWelcomeScreen.WindowState = FormWindowState.Maximized
LoadWelcomeScreen.Show()

HTH
MCN
"Simon Jefferies" <si****@headfirst.co.uk> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
Please can you give me an example of how you used MaximumSize?

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:tN********************@karoo.co.uk...
I Use:

LoadForm1.MdiParent.MaximumSize

HTH
MCN

"Simon Jefferies" <si****@headfirst.co.uk> wrote in message
news:u$**************@TK2MSFTNGP10.phx.gbl...
How do I get a MDI child form to maximize itself inside the MDI parent

form
when it loads?

TIA
Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-



Nov 20 '05 #6
"Simon Jefferies" <si****@headfirst.co.uk> schrieb
I tried to set the windowstate property in the form load event to
maximized, but nothing happened.


I tried it and it works here. Framework 1.1, WinXP.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #7
Works a treat! Cheers!

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:5e********************@karoo.co.uk...
Probably best doing it this way, althought im a newbie so don`t quote me,
however it works for me:-

Dim LoadWelcomeScreen As New frmWelcomeScreen()
LoadWelcomeScreen.MdiParent = Me
LoadWelcomeScreen.WindowState = FormWindowState.Maximized
LoadWelcomeScreen.Show()

HTH
MCN
"Simon Jefferies" <si****@headfirst.co.uk> wrote in message
news:O2**************@tk2msftngp13.phx.gbl...
Please can you give me an example of how you used MaximumSize?

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"MadCrazyNewbie" <te**@nospam.com> wrote in message
news:tN********************@karoo.co.uk...
>I Use:
>
> LoadForm1.MdiParent.MaximumSize
>
> HTH
> MCN
>
> "Simon Jefferies" <si****@headfirst.co.uk> wrote in message
> news:u$**************@TK2MSFTNGP10.phx.gbl...
>> How do I get a MDI child form to maximize itself inside the MDI parent
> form
>> when it loads?
>>
>> TIA
>> Regards
>> Simon Jefferies
>> Tools Programmer, Headfirst Productions
>> mailto:si****@headfirst.co.uk
>> www.callofcthulhu.com www.deadlandsgame.com
>> -
>>
>>
>
>



Nov 20 '05 #8
Thanks for your help,

I realised that I needed to set the windowstate to maximised before I showed
the form.

Regards
Simon Jefferies
Tools Programmer, Headfirst Productions
mailto:si****@headfirst.co.uk
www.callofcthulhu.com www.deadlandsgame.com
-
"Armin Zingler" <az*******@freenet.de> wrote in message
news:40***********************@news.freenet.de...
"Simon Jefferies" <si****@headfirst.co.uk> schrieb
I tried to set the windowstate property in the form load event to
maximized, but nothing happened.


I tried it and it works here. Framework 1.1, WinXP.
--
Armin

How to quote and why:
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #9
* "Simon Jefferies" <si****@headfirst.co.uk> scripsit:
I realised that I needed to set the windowstate to maximised before I showed
the form.


Even that works for me (Windows XP Professional, .NET 1.1).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #10
Hi Simon,

Great

Cor
Nov 20 '05 #11
Cor,

It feels good to be able to help people and not just recive the help:)

Cheers
MCN

"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi Simon,

Great

Cor

Nov 20 '05 #12

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Chewy1026 via AccessMonster.com | last post: by
reply views Thread by pnp | last post: by
reply views Thread by Scott McChesney | last post: by
7 posts views Thread by Elmo Watson | last post: by
1 post views Thread by Brett Romero | last post: by
1 post views Thread by mac | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.