I have a main form and a secondary form that I would like to keep "hooked" to the main. The only way I could come up with would be to now if the Main form had moved and move the secondary form occordingly.
How can I do this?
Printable View
I have a main form and a secondary form that I would like to keep "hooked" to the main. The only way I could come up with would be to now if the Main form had moved and move the secondary form occordingly.
How can I do this?
Subclass the form for the WM_MOVE message. On thet message move the second form.
This is one way.Code:WM_MOVE
The WM_MOVE message is sent after a window has been moved.
Try setting one form as a parent to the other.
Vlatko, How do I go about sub classsing?
Autobot, I think you were close but I need the form attached to the side of the main form, so that it moves with the Main form.
Thanks