Chapter 6. User Interface Programming

for RuBoard

Chapter 6. User Interface Programming

A fundamental feature of modern user interaction with a computer is a graphical user interface or GUI. In this chapter we learn how to implement a GUI using the Windows Forms classes of the .NET Framework. Practical Windows programming involves extensive use of tools and wizards that greatly streamline the process. But all this automation can obscure the fundamentals of what is going on. Hence we begin with the basics, employing the .NET Framework SDK to create simple Windows applications from scratch, without use of any special tools. We describe the fundamentals of drawing in Windows Forms, using a font and a brush. We explain the principles of event handling in Windows Forms and implement handlers for mouse events. We implement menus in Windows Forms and corresponding event handlers. Controls are introduced.

At this point we switch over to using Visual Studio.NET, which makes it easy to create a starter project, draw controls using a Forms Designer, create menus, add event handlers, and perform other useful tasks . Dialog boxes are covered, and the listbox control is introduced. We illustrate GUI programming by constructing a GUI 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