how to set form startup location/position manually?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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
.


Quantcast