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 ...

Get Application Development Using C# and .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.