Workshop

   

The Workshop is designed to help you anticipate possible questions, review what you've learned, and get you thinking about how to put your knowledge into practice. The answers to the quiz are in Appendix A,"Answers to Quizzes/Exercises."

Quiz

1:

Name three things that can cause events to occur.

2:

True or False: All objects support the same set of events.

3:

What is the default event type for a button?

4:

The act of an event calling itself in a loop is called what?

5:

What is the easiest way to access a control's default event handler?

6:

All control events pass a reference to the control causing the event. What is the name of the parameter that holds this reference?

Exercises

  1. Create a project with a single text box. In the Resize event of the form, show the Width of the form in the text box.

  2. Create a project with a form and a text box. Add code to the TextChange event to cause a recursion when the user types in text. Hint: Concatenate a character to the end of the user 's text using a statement such as txtMyTextBox.Text = String. Concat(this. txtMyTextBox.Text,"a");


   
Top


Sams Teach Yourself C# in 24 Hours
Sams Teach Yourself Visual Basic 2010 in 24 Hours Complete Starter Kit (Sams Teach Yourself -- Hours)
ISBN: 0672331136
EAN: 2147483647
Year: 2002
Pages: 253
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net