Two greetings

This assignment tests your ability to write programs with one-instruction event handlers.

Begin by carefully reading the note on event handlers and the notes on the VS.NET Development System, including the one on the code window which we use in this assignment.

The two greeting program has four event handlers.

What are the four events this program handles?

  1.  

  2.  

  3.  

  4.  

Write a program that does the same thing. When it is debugged, turn in a listing of your object definitions and event handlers and a screen shot of the program while it is executing. (You do not have to turn in a listing of the entire program).

Hint: The Textbox class has a Clear() method, which assigns the value "" to the Text property.

Hint: Note that the "Say hello" button has focus when my program begins execution -- yours should do the same.


Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.