473,387 Members | 1,766 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,387 software developers and data experts.

Maximized windows form inside parent form

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
2 12578
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

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

Similar topics

5
by: Guillermo Lopez | last post by:
Hi, I would like to know if it is possible to have a process (such as a command prompt or notepad) running as a child of an MDI Windows Form, i.e. a process that runs inside a window form and...
3
by: Bob | last post by:
I am trying to create a popup page (to act as a menu) from a parent page. When the parent page (index.jsp) calls my popup function (see below) it will properly open the correct size browser window...
0
by: mhanrahan | last post by:
Hi, I am experiencing a "bug" (maybe I am missing a setting or something) with a Windows MDI application which I am building in c# 2.0. I am doing the following: Create an MDI parent add a...
2
by: James CC | last post by:
I have a strange bug in C# using windows forms. To make sure it's not some bug with my code, I've gone back to a simple test app, and still see the same behavior. I have created a simple C#...
1
by: Piotr Rendaszka | last post by:
Hi, I do have this problem: While having an open MDI Parent form I am opening one MDI Child form that I am maximizing. The next child I open (even an instance of different MDI Child form) is...
1
by: 1388-2/HB | last post by:
For vb2005. At design time I set the main form's WindoState to Maximized and I disabled the Maximize box. The user can Minimize the application only. When the program launches, the form is...
1
by: Marc the Demi-Programmer | last post by:
I am overriding WncProc to make sure my form's location stays within specified parameters. Basically, it has to stay at the top of the screen and not be off to either of the sides. All that works...
21
by: Dan Tallent | last post by:
In my application I have a form (Customer) that I want to be able to open multiple copies at once. Within this form I have other forms that can be opened. Example: ZipCode. When the user enters...
7
by: =?Utf-8?B?U2hpdmEgUmFtYW5p?= | last post by:
I have a windows application with multiple forms & another web application. Now I need a parent EXE or Application which need to act as a container to these application. Example : My existing Web...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.