CONGRATULATIONS!!!    YOU    ARE    WELL    ON    YOUR    WAY    TO    BECOMING    A    VERY,    VERY    HIGHLY    PAID    VB    PROGRAMMER


OBJECTIVES

Many Windows programs make heavy use of the mouse device. In this lesson, you'll learn how to detect and make use of the various events that occur due to mouse movements, mouse clicking, and the combination of mouse clicking and keyboard pressing. You'll also learn about dragging and dropping objects with the mouse.

THE MOUSE

1.  When is the Form_MouseDown () even procedure executed?
    (a) When the user clicks the mouse on the Exit button
    (b) When any of the mouse buttons is pushed inside a free 
        area of the form
    (c) Whenever the mouse moves inside a free area of the form.

2.  What is the ScaleMode property?

3.  What method is used for moving objects during run-time?
    (a) The Move method
    (b) The Line method
    (c) The Circle method

4.  What is the meaning of the X and Y arguments in mouse event 
    procedures?

5.  When is the Form_DragDrop() even procedure executed?
    (a) When the user moves the mouse inside a free area of the form
    (b) When any of the mouse buttons is released
    (c) When the left mouse button is released

6.  When is the Form_DragDrop() event procedure executed?
    (a) When the mouse device drops down on the floor
    (b) When the user releases the mouse button over a free area
        of the form
    (c) When a control is dragged outside the form

7.  What is the value of the Source argument of the Form_DragDrop()
    procedure?
    (a) Source = 0
    (b) Source = the control that was dropped
    (c) Source = the Tag property of the control that was dropped



TEST YOUR PROGRESS

ANSWER KEY:

BACK TO HOMEPAGE

VB ONLINE: