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'.
 
Back
Top