Results 1 to 2 of 2

Thread: Moving Forms

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Location
    asdf
    Posts
    39

    Moving Forms

    How can you make it so you can drag a form around that doesn't have any border or anything, the answer is probably simple but hey, so am I. Thanks.
    I dont know much...

  2. #2
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    VB Code:
    1. Public Const WM_NCLBUTTONDOWN = &HA1
    2. Public Const HTCAPTION = 2
    3.  
    4. Public Declare Function ReleaseCapture Lib "user32" () As Long
    5. Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    6.  
    7. Sub Form_MouseDown(Button as integer, x,y,shift)
    8. ReleaseCapture
    9. SendMessage hwnd, WM_NCLBUTTONDOWN, HTCAPTION, 0&
    10. end sub
    Last edited by Xa0z; Jun 20th, 2002 at 05:12 AM.
    There are 10 types of people, those who understand binary and those who don't

    http://merlijn.beyonix.net

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