Showing Dialog Forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to set the position of a Form that I show as a Dialog as follows:

dim myDialog as new Form1

myDialog.Left=200:myDialog.Right=400
myDialog.ShowDialog()

This totally ignores my left and right settings. How can I change the
position of myDialog in Code as it keeps reverting to the original Design
settings of Form1.
 
Dennis,

Dennis said:
I am trying to set the position of a Form that I show as a Dialog as
follows:

dim myDialog as new Form1

myDialog.Left=200:myDialog.Right=400
myDialog.ShowDialog()

This totally ignores my left and right settings. How can I change the
position of myDialog in Code as it keeps reverting to the original Design
settings of Form1.

Set the form's 'StartPosition' property to 'Manual'.
 

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

Similar Threads


Back
Top