Answer the following statements true (T) or false (F)

1. Most of the code to create a GUI is written by the programmer.
2. The Form class defines the methods that handle each event within the Form class.
3. Once an event is raised, every method referenced by the delegate is called.
4. Many controls already have predefined delegates corresponding to every event they can generate.
5. Each event is allowed only one event handler method.

1. False. Most of the code is generated by Visual Studio.
2. False. The use of delegates allows the Form class to specify the event handler that will be
called for each event. The actual code to handle the event must be written by a programmer.
3. True.
4. True.
5. False. Many methods may be defined to handle one event.

Computer Science & Information Technology

You might also like to view...

What are the three sliders in the Color Balance Properties panel?

What will be an ideal response?

Computer Science & Information Technology

Which of the following is NOT an element in a session control cookie array?

a. path b. unsecure c. domain d. lifetime

Computer Science & Information Technology