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

Maximized windows form inside parent form

P: n/a
I have a form with a menu on the top. This menu show
another form.

I want to open this second form maximized inside the
parent form just below the menu of the parent form. (Like
Microsoft Word).

How do i do that ?

Thanks
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
developer,

You can probably set the WindowState property to Maximized before you
show the form, and it should appear maximized in your MDI frame.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- ni**************@exisconsulting.com

"developer" <de*******@sogescom.net> wrote in message
news:0a****************************@phx.gbl...
I have a form with a menu on the top. This menu show
another form.

I want to open this second form maximized inside the
parent form just below the menu of the parent form. (Like
Microsoft Word).

How do i do that ?

Thanks

Nov 13 '05 #2

P: n/a

Hi ,

I think you want to make a MDI application in C#.

There are some steps to create a MDI application:
1) Create two Forms in your application(such as form1 and form2)
2) Set the form1's IsMdiContainer attribute to True
3) In the Menu's click event, set the form2 instance's MdiParent attribute
to form1 instance(such as this key word)

Then the form2 you showed out will appear the same as a MDI window.

Just like what Nicholas said, you can set the form2's WindowState attribute
to Maximized, then the form2
will fulfill the form1 after being showed out;.

Hope it helps.
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "developer" <de*******@sogescom.net>
| Sender: "developer" <de*******@sogescom.net>
| Subject: Maximized windows form inside parent form
| Date: Wed, 16 Jul 2003 06:36:58 -0700
| Lines: 10
| Message-ID: <0a****************************@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcNLn1RX4isadLANTfij1v+fqVbTiQ==
| Newsgroups: microsoft.public.dotnet.languages.csharp
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:169501
| NNTP-Posting-Host: TK2MSFTNGXA13 10.40.1.165
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| I have a form with a menu on the top. This menu show
| another form.
|
| I want to open this second form maximized inside the
| parent form just below the menu of the parent form. (Like
| Microsoft Word).
|
| How do i do that ?
|
| Thanks
|

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.