To Overview Notes

Windows Application Directions

 

  1. Reference System.Windows.Forms.dll from the class reference library. This contains the code defining Windows forms and controls.

  2. Create a class defining your form named Form1. This class must inherit System.Windows.Forms.Form.

  3. Define a textbox that contains the number of clicks and a button to be clicked (caption "Click Me").

  4. Set the sizes and locations of the form, textbox and button.

  5. Add the textbox and button to the Controls collection of the form.

  6. Add an event handler that will add one to the count of clicks in the textbox when the button is clicked.

  7. Create a class named ClickCounter2 with a Main method that runs the application using