Alright. I've just been told that, instead of creating new forms over and over again using new FormName(); I should simply open 1 form and then hide/show it as I please. The issue now is, that I don't really know where/when I should create these new form instances and how I would reference them. I was thinking that I could create a new instance of all of the forms I need when the program starts and then just hide them until I need them, but I've really got no idea. Can anybody give me any clues on what they would do and how they would do it? Much appreciated.
Aaron_JY
0
Newbie Poster
Recommended Answers
Jump to PostGood question!
I should create forms as I need them.
Think for instance about a dialog form, informing the user that he has some options he can take, before finishing the application. Would you create such form at the start of the application? I see no need in doing so, …
Jump to PostThis is one of the most common questions in the C# forum.
See this example thread.
Search Daniweb for other examples.
All 6 Replies
ddanbe
2,724
Professional Procrastinator
Featured Poster
Aaron_JY
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Aaron_JY
0
Newbie Poster
pitic
15
Newbie Poster
JOSheaIV
119
C# Addict
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.