|
-
Oct 26th, 2001, 04:16 AM
#1
Thread Starter
Lively Member
Using 'SendMessage' to manually drag a form
Hi,
I have managed to allow a form to be dragged by using the _MouseDown Sub that is triggered with a picturebox upon mouse down...
It works quite well, however 'ReleaseCapture' is also used, and this prevents _MouseUp from being triggered.
Why is this important you may ask?
Becuase on _MouseDown, 'pic_Caption.BackColor = 255' is used (pic_Caption is the picturebox name) changing the color of the picturebox to red, which signified that the user is dragging the window.
So I need something to be triggered when the user has stopped dragging the form to return pic_Caption.BackColor to it's original color, which is black.
'pic_Caption.BackColor = 0'
Please take a look at the source included and share your idea's/solutions.
Thanks,
Sphynx
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|