1 Attachment(s)
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
Manual Dragging.. AND Resizing :)
Hey, thanks for the help Hack.
I've added some more code and come across a new problem, I wanted to allow the window to be resized manually.
See if you can help me out and check out the code attached.
Thanks,
Sphynx