Newbie stupid form question

J

jay

I am opening new forms with the below code from my mainMenu form
[isMdiContainer=True]

Dim frmNew As New WhatsUp

frmNew.MdiParent = Me

frmNew.Show()

It seems that every time I open a new window it moves progressively further
to the right and down, even after I have closed a form, and no forms are
currently displayed. What properties can I set to make every new form show
up at the same location, like right below the menuStrip? I have tried
setting the properties of whatsUp, but they don't seem to do anything.
 
R

rowe_newsgroups

I am opening new forms with the below code from my mainMenu form
[isMdiContainer=True]

Dim frmNew As New WhatsUp

frmNew.MdiParent = Me

frmNew.Show()

It seems that every time I open a new window it moves progressively further
to the right and down, even after I have closed a form, and no forms are
currently displayed. What properties can I set to make every new form show
up at the same location, like right below the menuStrip? I have tried
setting the properties of whatsUp, but they don't seem to do anything.

I believe you need to set the new form's startposition property to
Manual before setting the form's location.

Thanks,

Seth Rowe
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top