Showing and Hiding Forms
Part III of this book is devoted to programming in C#, and I've avoided going into much programming detail in this hour so that you can focus on the concepts at hand. However, knowing how to create forms does nothing for you if you don't have a way to show and hide them. Because C# can display a single form automatically only when a program starts, you have to write code to show and hide other forms.
Showing Forms
In C#, everything is an object, and objects are based on classes (see Hour 17, “Designing Objects with Classes,” for information on creating classes). Because the definition of a form is a class, you have to create a new Form object using the class as a template. In Hour 3, “Understanding Objects and Collections,” ...
Get Sams Teach Yourself C#™ in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.