| Using buttons |
|
|
|
|
All kind of buttons can be used in a Windows application. The Button class can be used to implement these:
In the constructor, we declare an object of type Button and we assign its Parent property to this (which means the ButtonSample object). We decide to label the button with the string "Click me" and we add an event handler to the Click event of the Button class. A typical event handler takes two arguement, the first is a generic object and the other is an object of type EventArgs. The handler simply displays a message box. |
| < Prev | Next > |
|---|














