Jul 19th, 2006, 07:50 AM
#1
Thread Starter
Registered User
[RESOLVED] Form Move Event
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!
Jul 19th, 2006, 08:07 AM
#2
Re: Form Move Event
Do you mean this?
VB Code:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
End Sub
Jul 19th, 2006, 08:10 AM
#3
Thread Starter
Registered User
Re: Form Move Event
No, I mean like when you click the title bar of a form to move it around the screen.
Jul 19th, 2006, 08:12 AM
#4
Re: Form Move Event
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
Jul 19th, 2006, 08:16 AM
#5
Re: Form Move Event
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
Jul 19th, 2006, 08:30 AM
#6
Thread Starter
Registered User
Re: Form Move Event
I'll give subclassing a shot. It's probably the best way to do it, right?
Anyways, thanks for the replies.
Jul 19th, 2006, 08:36 AM
#7
Re: [RESOLVED] Form Move Event
Heres and example of subclassing
Attached Files
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