Results 1 to 2 of 2

Thread: Move Form without Windows Skin??

  1. #1

    Thread Starter
    Addicted Member NewGen's Avatar
    Join Date
    Nov 2002
    Location
    olathe, ks
    Posts
    152

    Move Form without Windows Skin??

    I have a program, CELamp, and it is basically an empty form without the windows minimize, maximize, and close buttons and i need to know how to move it across the screen. I have made my own toolbar at the top and there is a spot that is set for moving, i just can't figure out how to do it.
    I suck with graphics. Can you help me out? If you are good with graphics there are rewards . . . email me, [email protected] . . .

    [img src="www.cel-eration.com/anim1.gif"][/img]

  2. #2
    Hyperactive Member
    Join Date
    Nov 2003
    Location
    In Front of my computer...
    Posts
    367

    Smile

    hi this will do the job u want move the form with no border
    VB Code:
    1. 'put the APIs
    2. Private Declare Function ReleaseCapture Lib "user32" () As Long
    3. 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
    4. 'Put the following on form_mousedown procedure or another mouse down procedure
    5. ReleaseCapture
    6. SendMessage Me.hwnd, &H112, &HF012&, 0
    Born to help others
    (If I've been helpful then please rate my post. Thanks)

    call me EJ or be slapped!

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