Summary
This chapter discussed some of the more advanced features of Windows forms and the commonly used controls. It discussed the event-driven nature of Windows and showed three events that can happen to a button (namely Click, MouseEnter, and MouseLeave).
You created a simple application that allowed you to enter some text and then choose between counting the number of characters or the number of words by using radio buttons.
You then turned your attention to building a more complex application that allowed you to edit text by changing its color or its case. This application showed how easy it was to build an application with toolbars and status bars. You even added an About dialog box to display basic information about your application such as the application title, description, version number, and copyright information.
To summarize, you should now know how to:
-
Write code to respond to control events
-
Set properties on controls to customize their look and behavior
-
Use the ToolStrip and StatusStrip controls
-
Display other forms in your application
click next Chapter - Displaying Dialog Boxes. |