I will start working on a form soon which runs as an mdi container (in the main screen)
However there is this "new" requirement, there will be 4 screens, and one of the features of the program is to open child forms (not within the mdi container) but in a totally different screen (as in a second one, not the primary one).
Now it is going to be a quad screen system. not even 2.
I wrote a small snippet
Expand|Select|Wrap|Line Numbers
- Form frm1 = new Form();
- Screen[] screens = Screen.AllScreens;
- foreach (Screen scrn in screens)
- {
- if (scrn.Primary == false)
- {
- frm1.Bounds = scrn.Bounds;
- frm1.StartPosition = FormStartPosition.Manual;
- frm1.Show();
- }
- }
if so how can i distinguish which one of the secondry screen i am looking for.
I would have 1 primary and 3 secondry screens.
*scracthing my head until i even get 2 monitors*