Results 1 to 3 of 3

Thread: [Resolved] Click Drag Form

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    169

    Resolved [Resolved] Click Drag Form

    How do I make it so that when I click and drag on a picture box the form moves.
    Attached Files Attached Files
    Last edited by nuclear112; Sep 8th, 2007 at 03:51 PM.

  2. #2
    Frenzied Member some1uk03's Avatar
    Join Date
    Jun 2006
    Location
    London, UK
    Posts
    1,675

    Re: Click Drag Form

    Declare the following:


    and in the picture1 mousedown event add:

    Private Declare Function ReleaseCapture Lib "user32" () As Long
    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long


    Code:
    ReleaseCapture
    SendMessage me.hwnd, &H112, &HF012&, 0
    _____________________________________________________________________

    ----If this post has helped you. Please take time to Rate it.
    ----If you've solved your problem, then please mark it as RESOLVED from Thread Tools.



  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    169

    Re: Click Drag Form

    Don't worry I figured it out.
    Attached Files Attached Files

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