Summary

for RuBoard

In this chapter we learned how to implement a GUI using the Windows Forms classes of the .NET Framework. We began with first principles, using the .NET Framework SDK to create simple Windows applications from scratch, without use of any special tools. Drawing is done in an override of OnPaint using a font and a brush. The .NET event mechanism is used to handle user interaction such as mouse events and pressing keys. Controls simplify Windows programming. A menu control makes it easy to add menus to a Windows program. Visual Studio.NET greatly simplifies Windows programming. The Forms Designer lets you drag controls from the Toolbox onto your forms, and you can set properties of the controls at design time. You can also easily add event handlers. Dialog boxes are a special kind of form, and you can pass information between a parent form and a dialog through use of properties in the dialog. The listbox control makes it easy to display lists of information.

We concluded the chapter by presenting a graphical user interface for our Acme Travel Agency Case Study.

for RuBoard


Application Development Using C# and .NET
Application Development Using C# and .NET
ISBN: 013093383X
EAN: 2147483647
Year: 2001
Pages: 158

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net