Thank you all for your replies. I am setting StartPosition to Manual, and I
have tried the suggestions, but my form is still not behaving as desired. I
don't know if the following makes a difference, but the second form is
actually an indipendent form - not a child form (of an mdi form). One thing
I just noticed is this - if I set the startposition to CenterScreen or
CenterParent - the second form is not behaving as expected. The property is
being ignored. I only have 2 forms, so it is not like I am picking the wrong
form. If I set the primary form to CenterScreen - it appears on CenterScreen
as expected, but the second form does not behave as expected. Is there a
property I need to set/unset perhaps?
Thanks,
Rich
"Rich" wrote:
I am instnatiating a second form from a first form. I set startuplocation to
manual, then I enter 100 for X and 300 for Y on the second form. Then on the
click event of a button on form1 I have Dim frm = New form2, frm.Show. But
form2 shows up way to the right of the screen. I also tried this in code
frm.Location = New Point(100, 300)
but same results. How do you control the position of a form in VB.Net?
Thanks,
Rich