Summary
This chapter introduced the fine art of building a UI with the types contained in the System. Windows. Forms namespace. You began by building a number of applications by hand, and you learned along the way that at a minimum, a GUI application needs a class that derives from Form and a Main() method that invokes Application. Run().
During the course of this chapter, you learned how to build topmost menus (and pop-up menus) and how to respond to a number of menu events. You also came to understand how to further enhance your Form types using toolbars and status bars. As you have seen, .NET 2.0 prefers to build such UI elements using MenuStrips, ToolStrips, and StatusStrips rather than the older .NET 1.x MainMenu, ToolBar, and StatusBar types (although these deprecated types are still supported). Finally, this chapter wrapped up by illustrating how to construct MDI applications using Windows Forms.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
Rights and permissions
Copyright information
© 2005 Andrew Troelsen
About this chapter
Cite this chapter
(2005). Building a Better Window with System.Windows.Forms. In: Pro C# 2005 and the .NET 2.0 Platform. Apress. https://doi.org/10.1007/978-1-4302-0060-4_19
Download citation
DOI: https://doi.org/10.1007/978-1-4302-0060-4_19
Publisher Name: Apress
Print ISBN: 978-1-59059-419-3
Online ISBN: 978-1-4302-0060-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books