Click here to Skip to main content
13,093,184 members (82,421 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How to open two forms at a time in Windows Application c#..I mean one form(minimised) behind the other(maximised)form at the same time....
Posted 20-Mar-13 0:04am
Korathu 2 20-Mar-13 6:10am
I want to run multiple forms at the same time...
Mickt1985 20-Mar-13 6:18am
Just inside your main form use, Form2 frmTwo = new Form2();
frmTwo.Show(); or frmTwo.ShowDialog();

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

add a button to Form1 and in the handler of that button click add:

Form2 f2 = new Form2();
this.WindowState = FormWindowState.Minimized;

if you want to maximize again try adding
this.WindowState = FormWindowState.Minimized;
after f2.ShowDialog. (if that doesn't work you'll need to fire an event that Form1 catches.

to start Form2 Maximized use the same principle
f2.WindowState = FormWindowState.Maximized;

It might not be 100% correct, but should get you on your way.
Hope this helps.
Akkywadhwa 21-Mar-13 13:56pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.170813.1 | Last Updated 20 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100