Results 1 to 16 of 16

Thread: Need help on integrating a program with the desktop

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    8

    Need help on integrating a program with the desktop

    Hello

    I teach basic computer skills and found that some students (people who never used computers before) are having trouble "mastering" basic mouse functions such as drag and drop. For that reason I wrote a very simple program that whould show them on the screen when the mouse mouse buttons are used.
    I managed to do that from reading certain tutorials on the internet (I am not a programer) but I couldn't find anything about making it work with the desktop which means showing the mouse on the background (top right of the screen) while using the desktop.

    here is the code:
    (clppicture is a picture of the 3 mouse states - no button pressed, left button pressed and right button pressed)
    VB Code:
    1. Private Sub Form_DblClick()
    2. pctBox.Picture = clppicture.GraphicCell(1)
    3. End Sub
    4.  
    5. Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
    6.  
    7. If Button = vbLeftButton Then
    8. pctBox.Picture = clppicture.GraphicCell(Button)
    9. ElseIf Button = vbRightButton Then
    10. pctBox.Picture = clppicture.GraphicCell(Button)
    11. End If
    12. End Sub
    13.  
    14. Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    15. Button = 0
    16. pctBox.Picture = clppicture.GraphicCell(Button)
    17. End Sub

    Any help whould be appreciated

    thanks



    Edit: Added [vbcode][/vbcode] tags for clairty. - Hack
    Last edited by Hack; Sep 14th, 2005 at 12:13 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width