473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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 5812
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Chewy1026 via AccessMonster.com | last post by:
Is this even possible. To be able to have a subform where the Master field on the main form is linked to the subform via 1 child field OR another? So the table for the main form, can be matched...
0
by: pnp | last post by:
Hi all, I have an MDI container form and a few MDI children forms. The problem is that while I have set that an MDI child has a maximum size and that it cannot be maximized, when another MDI child...
0
by: Scott McChesney | last post by:
I have a problem I hope you folks can help me with. I have an application that is using a tab-based interface, with the ability for users to drag an item from a ListBox onto the tab control. ...
0
by: Bob | last post by:
I have my own toolbar docked at the top of an MDI parent form's client area. When a child form is maximized, the toolbar gets bumped down underneath an area that shows the child form's topmost...
7
by: Paul | last post by:
Hello, I'm coming from a PHP background and am working on a large-scale VB.NET project. One of the cornerstones of this project is a reusable form class, to standardize our web forms. My goal...
7
by: Elmo Watson | last post by:
(using VS.net 2005 - never used DotNet WinForms til now - previously only used VB6) I have set my mdi child form to a window state of maximized. However, the first file I open is not maximized...
1
by: Brett Romero | last post by:
Let's say I have a panel docked top and a datagrid docked middle. In the panel are three columns and three rows of combo boxes and one search button. Search results are displayed in the grid. ...
1
by: mac | last post by:
Hi everyone I need your help just want to know why my webforms doest maximize i paste the script on the onload event <head runat="server"> <title>Untitled Page</title> </head>
3
by: Doc John | last post by:
In my Windows application, how can I manage the size of my child Forms within my MDI Forms? For example, when I maximize one child Form, all the other Forms maximize. And I need to conserve all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.