Home All Groups Group Topic Archive Search About
Author
12 Apr 2005 12:48 PM
John Devlon
Hi,

does anyone know how to change a form loaction ?


I tried ...

frmTest = new Form
frmTest.location = new point (0,0)
frmTest.show()

it doesn't work ...

Has anyone have any idees ?


Thanx

John

Author
12 Apr 2005 2:14 PM
Philip Hristov
John,

You need to set frmTest.StartPosition = FormStartPosition.Manual before
you set the location and before you call the show method.

Greetings,

Philip.
Author
12 Apr 2005 8:27 PM
John Devlon
Thanx... it works great ....
Your the best ...

John




Show quoteHide quote
"Philip Hristov" <phristo***@gmail.com> schreef in bericht
news:1113315241.999542.275990@o13g2000cwo.googlegroups.com...
> John,
>
> You need to set frmTest.StartPosition = FormStartPosition.Manual before
> you set the location and before you call the show method.
>
> Greetings,
>
> Philip.
>
Author
12 Apr 2005 2:25 PM
Herfried K. Wagner [MVP]
"John Devlon" <johndev***@hotmail.com> schrieb:
> does anyone know how to change a form loaction ?
>
>
> I tried ...
>
> frmTest = new Form
> frmTest.location = new point (0,0)
> frmTest.show()

Make sure the form's 'StartPosition' property is set to 'Manual', otherwise
the form will be repositioned according to the startup position setting
before it is shown.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>