how to set form startup location/position manually?
- From: "Rich" <Rich@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 20 Jun 2005 13:29:06 -0700
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
.
- Follow-Ups:
- RE: how to set form startup location/position manually?
- From: Rich
- Re: how to set form startup location/position manually?
- From: Kevin G via DotNetMonster.com
- Re: how to set form startup location/position manually?
- From: Herfried K. Wagner [MVP]
- RE: how to set form startup location/position manually?
- Prev by Date: Re: How to create a user in MSDE?
- Next by Date: Re: AxWebBrowser in windows form NewWindow2() event
- Previous by thread: How to create a user in MSDE?
- Next by thread: Re: how to set form startup location/position manually?
- Index(es):