Position small form over main form's titlebar

Xancholy

Well-known member
Joined
Aug 29, 2006
Messages
143
Programming Experience
Beginner
I need to display and latch a small form over the main form's titlebar. The miniform size will only be 170, 90 and positioned near(not over) the main form's close/min/max icons.

Can someone show me how the form positioning can be done ?

Thanks
 
Use the Location property of the miniform to set the position to near (not over) the main form's close/min/miax icons. Set this value everytime the LocationChanged event fires for the main form (in other words, handle the LocationChanged event of the main form and set the location of the miniform).
 
Back
Top