I have a main form Form1, and a secondary one, LogForm. When LogForm first appears, it should have its upper left corner touching Form1’s upper right. I can do that part. However, I would also like it if I could have LogForm stay touching Form1 if I move Form1 (ie, dragging Form1 drags LogForm with it). Any ideas how to do that? Edit: I’m very new to mouse events, so if that’s involved, please explain thoroughly.
Share
You can use the
Moveevent to handle the position update. The event will return the new position of the form – the top left. Add the width of the form to this, and you should be able to gain the positional information you require.