Replace the Application.Run statement with:
MyForm mF = new MyForm();
Application.Run(mF);
and then save/use the variable mF which points to your main form. You could
make mF a static variable in MyForm class and thus make it available
throughout your application, or some other technique.
"Jim Witt" <JW***@BayTechEng.com> wrote in message
news:1068306459.695522@rh9cache...
How can the Main application form be referred to?
In other words, I would like to get the size of the Main Form. But I
don't know how to instantiate it before:
Application.Run(new MyForm());
Thanks!