I come from the asp world where I'm used to developing web pages. I have
just taken a new job where they want me to be a winform developer. I am
presently creating a project that will have about 12-16 differnt pages. What
is the best way to develop the project. I could show each page in a
different panel, but that seems crazy. So Whats the best way to open and
close the pages when navigating.
Something like:
Form2 mynewform = new Form2();
mynewform.ShowDialog();
this.Hide();
Then if I'm on form3 do I need to create it again, or is there a way to just
show it since I hid it before?
Form1 mynewform = new Form1();
mynewform.ShowDialog();
this.Hide();
I guess I'm trying to find a good article creating a winform app with
several pages, navigating through forms, opening, closing and finally
disposing the project.
Thanks for any help.
-Jeff-
VJ - 16 Mar 2007 14:42 GMT
You could organize as a MDI application, and provide links from the MDI, to
open all these pages.. Gives a controlled environment
VJ
>I come from the asp world where I'm used to developing web pages. I have
> just taken a new job where they want me to be a winform developer. I am
[quoted text clipped - 20 lines]
> Thanks for any help.
> -Jeff-
Bryan Phillips - 16 Mar 2007 21:42 GMT
Take a look at the Smart Client Software Factory for some examples of
Windows Forms best practices:
http://www.codeplex.com/smartclient
--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
> I come from the asp world where I'm used to developing web pages. I have
> just taken a new job where they want me to be a winform developer. I am
[quoted text clipped - 18 lines]
> Thanks for any help.
> -Jeff-