Hi, what event fires when you move the form around the screen? I've noticed there is no Form_Move.
What I'm ultimately trying to do is have one form which I can move, but I want it to also move another form in unison with this form.
Thanks!
Printable View
Hi, what event fires when you move the form around the screen? I've noticed there is no Form_Move.
What I'm ultimately trying to do is have one form which I can move, but I want it to also move another form in unison with this form.
Thanks!
Do you mean this?
VB Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) End Sub
No, I mean like when you click the title bar of a form to move it around the screen.
i think that's the MouseMove Event.
but what you are trying to do, is not really possible with such events.
take a look at this Example by Karl Peterson
You would need to subclass your form and look for the WM_MOVING message.
alternatively you could do something using timers. Here's a link to an example of getting a MoveFinshed / ResizeFinished event using timers - it could be modified specifically for a form moving event: http://www.vbforums.com/showpost.php...59&postcount=6
I'll give subclassing a shot. It's probably the best way to do it, right?
Anyways, thanks for the replies.
Heres and example of subclassing :)