Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New window positioning within MDI app?

Status
Not open for further replies.

VBDotNetProgrammer

Programmer
Jul 9, 2003
50
0
0
GB
Hi,

I have an application that makes use of a main window in which child windows are spawned i.e like most windows apps.

The problem i have is that each time a window is opened regardless of whether the last window was closed or not the new window positions itself down and slightly to the right of the last open windows position!

Is there anyway i can make all the windows open in the same position? i.e. the top left of the main window.

Thanks
 
After the show event set the child forms location properties.

eg.
dim frm as new form1
frm.mdiparent=me
frm.show
frm.left=0
frm.top=0
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top