form location

  • Thread starter Thread starter John Devlon
  • Start date Start date
J

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
 
John,

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

Greetings,

Philip.
 
John Devlon said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top