I works for me. I have a modal dialog, when it is shown, a selected entity
in the Editor is zoomed to screen centre, so I place the dialog at
upper-left corner of the screen. It works always.
Note, if you need to specify a Win Form's location in code when it is
loaded, you need to set the Form's "StartPosition" property to "Manual".
wrote in message news:5304050@discussion.autodesk.com...
That doesn't seem to work?
This is my code:
Dim legendFormAs Legend1 = New Legend1()
'----TRIED DIFFERENT THINGS HERE-----
Application.ShowModalDialog(legendForm)
Things that I've tried are:
legendForm.CenterToScreen()
legendForm.Left = Windows.Forms.Screen.PrimaryScreen.Bounds.Left+5
legendForm.Top = Windows.Forms.Screen.PrimaryScreen.Bounds.Top+5
legendForm.StartPosition = Windows.Forms.FormStartPosition.CenterScreen
None of the above seem to effect the position of the form?