Results 1 to 5 of 5

Thread: Mouse Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    3

    Question

    was wondering if sumone could help..I am a beginner programmer ..and was wonderin if sumone cuold help me with my problem..

    How would i go about settin it so that it will save a picture from an image box/picture box when i right click the mouse anywhere on the screen?

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    [code]
    Private Sub Form_Load()
    Me.KeyPreview = True
    Picture1.Picture = LoadPicture("c:\MYFILE.jpg")
    End Sub

    Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
    If Button = vbRightButton Then
    SavePicture Picture1.Picture, "c:\MYFILE.jpg"
    End If
    End Sub
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

  3. #3
    Guest
    Use the SavePicture Function:

    Code:
      SavePicture Image1.Picture, "D:\Me.bmp"

  4. #4
    Guest
    Oops, Jop, didn't see yours.

    Pardon-moi, Jop, mais je ne parle pas le "post" pour vous.

  5. #5
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986

    Angry

    Pardon-moi, Jop, mais je ne parle pas le "post" pour vous.
    what's wrong with you people I ain't FRENCH?!!! Dutch man!! AMSTERDAM! (MASTERDAM), so stop speaking french please
    Matthew, what have you done you started all this, my days at these forums will never be the same, you changed it forever, in a french nightmare


    hehe just kidding guys
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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