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

maximize forms

I can set the maximizeBox property. But I didn't find a method to maximize a
MDI child form.
So I must do a duoble click at the maximize box.

Anybody know a maximize function or method?

Thank in advance
Thomas
Nov 16 '05 #1
6 19623
There is no such method.
You have to obtain the screen size by gettings Bounds property of the
PrimaryScreen object and set the Size of the Form manually. (If it is MDI
Form, you set the size to the size of the parent Form minus the Caption
size.

"Thomas" <ad***@versanet.de> wrote in message
news:41******@olaf.komtel.net...
I can set the maximizeBox property. But I didn't find a method to maximize a MDI child form.
So I must do a duoble click at the maximize box.

Anybody know a maximize function or method?

Thank in advance
Thomas

Nov 16 '05 #2

"Thomas" <ad***@versanet.de> wrote in message
news:41******@olaf.komtel.net...
I can set the maximizeBox property. But I didn't find a method to maximize a MDI child form.
So I must do a duoble click at the maximize box.

Anybody know a maximize function or method?

Thank in advance
Thomas


myForm.WindowState = FormWindowState.Maximized;

Regards,
Daniel
Nov 16 '05 #3
Hi Thomas.

set the mdiChild form WindowState property to
System.Windows.Forms.FormWindowState.Maximized

e.g:

foreach (Form form in this.MdiChildren)

form.WindowState = System.Windows.Forms.FormWindowState.Maximized;
Picho
"Thomas" <ad***@versanet.de> wrote in message
news:41******@olaf.komtel.net...
I can set the maximizeBox property. But I didn't find a method to maximize
a MDI child form.
So I must do a duoble click at the maximize box.

Anybody know a maximize function or method?

Thank in advance
Thomas

Nov 16 '05 #4
Hi Thomas.

set the mdiChild form WindowState property to
System.Windows.Forms.FormWindowState.Maximized

e.g:

foreach (Form form in this.MdiChildren)
form.WindowState = System.Windows.Forms.FormWindowState.Maximized;
Picho
"Thomas" <ad***@versanet.de> wrote in message
news:41******@olaf.komtel.net...
I can set the maximizeBox property. But I didn't find a method to maximize
a MDI child form.
So I must do a duoble click at the maximize box.

Anybody know a maximize function or method?

Thank in advance
Thomas

Nov 16 '05 #5
"Thomas" <ad***@versanet.de> wrote:
Anybody know a maximize function or method?


It's a property:

myForm.WindowState = FormWindowState.Maximized;

P.
Nov 16 '05 #6
Thanks for all answers. So simple and it works :-)
Thomas

"Paul E Collins" <fi******************@CL4.org> schrieb im Newsbeitrag
news:cr**********@titan.btinternet.com...
"Thomas" <ad***@versanet.de> wrote:
Anybody know a maximize function or method?


It's a property:

myForm.WindowState = FormWindowState.Maximized;

P.

Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Scott | last post by:
I've used the DoCmd.Mazimize function on my databases main opening form and now all the forms maximize on open, not just the form the command has been placed in. (onOpen) Any ideas why or how I...
4
by: lauren quantrell | last post by:
I have an Access 2K popup form to which I have added buttons to run DoCmd.Maximize The problem is the form opens full height on the screen, with the bottom of the form hidden under the Windows...
0
by: Henry Wu | last post by:
Hi, I am aware that TransparencyKey only works with top-level forms or Non-MDI Child Forms, if one tries to set the opacity or transparencykey property to a MDI-Child form, it will have no effect....
3
by: guy | last post by:
VB2005 I have an MDI application, which displays modal forms correctly, and starts up with the MDI form maximized however for non modal forms behavious is unusual all forms have MaximizeBox,...
1
by: neeraj | last post by:
Hi people's I developed one MDI application with one MDI form and 2 child forms, form. Border style of first child forms set as Fixed3D and Window State set as normal (like dialog Box) and...
6
by: Stormy | last post by:
I am working on an app(C#) with two forms A and B. form A is the main form and form B is created in A's constructor. when I minimize both of them. they all shown on taskbar as A and B. my problem...
8
by: Tony K | last post by:
How do you maximize a child form when you show the child form. My resolution on my screen is 1440 x 900. My parent form maximizes just fine, but when I show a child form it doesn't maximize. It...
1
by: gazelle04 | last post by:
I want to maximize all forms. I've entered DoCmd.Maximize on forms. The problem comes up when I return to the form from another form - It returned to Restore mode and all the other forms become...
2
by: Andy Sauer | last post by:
Hello, For one form, I want it to maximize upon opening. So, in that form's "On Load" Event, I put in: Private Sub Form_Load() DoCmd.Maximize End Sub However, all subsequent forms that I...
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:
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.