M
Marty
Hi,
When creating a form, how can we set its property .left and .top to be
handled when the form is showed. Because, if I first assign values to
..left and .top, and secondly I call .show(), then the form does not
display at the correct screen location.
ex:
System.windows.forms.form myForm = new System.windows.forms.form();
myForm.left = 200;
myForm.top = 200;
myForm.show();
//The form does NOT appear at specified screen coordinate.
ex:
System.windows.forms.form myForm = new System.windows.forms.form();
myForm.show();
myForm.left = 200;
myForm.top = 200;
//The form does appear at specified screen coordinate and the user can
see the form's initial position, then reappear to the .left and .top
coordinate.
Any idea?
Thank you,
Marty
When creating a form, how can we set its property .left and .top to be
handled when the form is showed. Because, if I first assign values to
..left and .top, and secondly I call .show(), then the form does not
display at the correct screen location.
ex:
System.windows.forms.form myForm = new System.windows.forms.form();
myForm.left = 200;
myForm.top = 200;
myForm.show();
//The form does NOT appear at specified screen coordinate.
ex:
System.windows.forms.form myForm = new System.windows.forms.form();
myForm.show();
myForm.left = 200;
myForm.top = 200;
//The form does appear at specified screen coordinate and the user can
see the form's initial position, then reappear to the .left and .top
coordinate.
Any idea?
Thank you,
Marty