ex.hlp (Topic list)
DragOver Event Example
                        Example                Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
' This example demonstrates one way to indicate a valid drop target. The
' mouse pointer changes from the default to a happy face icon when the text
' box is dragged over a picture box. The mouse pointer returns to the
' default when the source is dragged elsewhere.
 
' To try this example:
' 1. Choose New Project from the File menu
' 2. Choose New Form from the File menu to create a form with:
'    • Small text box
'    • Large picture box
' 3. Set the text box DragMode property to 1 (Automatic)
' 4. Press Alt+F4 to return to the programming environment
' 5. Copy the code example code below to the form module
' 6. Press F5 to run the example
 
 SUB Picture1_DragOver (Source AS CONTROL, X AS SINGLE, Y AS SINGLE, _
 State AS INTEGER)
     CONST INSIDE = 2
     SELECT CASE INSIDE
          CASE INSIDE        ' Load icon
          Picture1.MousePointer = 4
          CASE ELSE          ' Unload icon
          Picture1.MousePointer = 0
     END SELECT
 END SUB