Chapter 1 - Windows Controls
IN THIS CHAPTER
One of the early premises of the Windows operating system was to define a common set of user interface elements to be shared by all applications. The idea was that a user could learn one application and apply that knowledge to other applications. Each application shared common
The development of the Windows UI (User Interface) controls has not been limited to just advances in the Microsoft Windows environment; rather, many third-party companies have built their entire livelihood off of creating custom controls for Windows developers. Often, these custom controls
The reason for the thriving market is customer driven. Customers expect that applications have the latest UI elements found in typical Microsoft products. Somehow a slick up-to-date UI
I have often been asked, "Why doesn't Microsoft release its UI
Developing custom controls is a
The remainder of this chapter discusses basic control concepts such as runtime verses design-time support. In addition, the basic anatomy of controls is covered.
Regardless of the type of control being developed, its use should be immediately obvious to the user of the control. After all, if the
Consider a menu, a toolbar, and a command button. Although each control looks different, users expect that when they left-click the control, some action will take place within the application. The action is, of course, application specific; however, the control's behavior is common among all applications. This common functionality is the cornerstone of Windows development because it allows users to learn one application and apply that knowledge to other Windows-based applications.
All Windows-based controls, both common and custom, share several common traits. These traits include the various properties and events used to define the control's appearance and behavior. Common properties include
The subject of properties and events as defined within .NET development should be already familiar to you; therefore, only a brief discussion of their use is covered here.