Skip to main content

Building a Better Window with System.Windows.Forms

  • Chapter
Pro C# 2005 and the .NET 2.0 Platform
  • 362 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Rights and permissions

Reprints 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

Publish with us

Policies and ethics