Exam 13: Handling Events

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Given a GUI Control, what objects and delegates are provided to handle mouse events such as clicking, pointing, and dragging?

Free
(Essay)
4.8/5
(30)
Correct Answer:
Verified

Mouse events include all the actions a user takes with a mouse, including clicking, pointing, and dragging.Mouse events can be handled for any Control through an object of the class MouseEventArgs.The delegate used to create mouse event handlers is MouseEventHandler.Every mouse event-handling method must have two parameters: an object representing the sender, and an object representing the event.Depending on the event, the type of the second parameter is EventArgs or MouseEventArgs.

What file can be opened to examine all the code generated by the Windows Form Designer for an application that creates a Form?

Free
(Multiple Choice)
4.9/5
(36)
Correct Answer:
Verified

A

What keyword can be used to declare a delegate?

Free
(Multiple Choice)
5.0/5
(45)
Correct Answer:
Verified

D

What happens when the TabIndex values of two or more Controls is set to 0?

(Multiple Choice)
4.8/5
(41)

When an event occurs, any delegate that a client has given or passed to the event is invoked.

(True/False)
4.8/5
(39)

What are common keyboard events? What is the delegate used to create a keyboard event handler, and what is the type of the second parameter to the event handler?

(Essay)
4.9/5
(32)

Any delegate can encapsulate any method that has the same return type and parameter list as the delegate.

(True/False)
4.8/5
(40)

An event that occurs as a result of interaction with the keyboard is known as what type of event?

(Multiple Choice)
4.9/5
(43)

When you double-click a Button on a Form in the IDE, you automatically generate the shell of what method?

(Multiple Choice)
4.8/5
(31)

A C# delegate is similar to what variable type in C++ that holds a method's memory address?

(Multiple Choice)
4.8/5
(34)

The C# language requires that every event must use a delegate type with three parameters.

(True/False)
4.8/5
(41)

When you define your own event-handler delegate, what arguments are required? Provide an example of a delegate declaration.

(Essay)
4.8/5
(39)

What event occurs when the user clicks the mouse within the Control's boundaries?

(Multiple Choice)
4.7/5
(37)

What is the relationship between an event sender and event receiver?

(Essay)
4.8/5
(35)

Mouse events can be handled for any control through an object of what class?

(Multiple Choice)
4.8/5
(38)

What event occurs when a mouse button is released while the mouse is within the Control's boundaries?

(Multiple Choice)
4.9/5
(38)

For static methods, what does a delegate object encapsulate?

(Multiple Choice)
4.9/5
(41)

What expression describes the act of calling an event method?

(Multiple Choice)
4.8/5
(34)

What Boolean property of a Control identifies whether the Control will serve as a stopping place in a sequence of Tab key presses?

(Multiple Choice)
4.7/5
(30)

What is used to declare your own event in C#?

(Multiple Choice)
4.7/5
(36)
Showing 1 - 20 of 41
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)