Form Position

A

Aless

Is it possible to fix the position of a form on the screen - I can't
find this on form's properties apart from setting the movable property to
No.

Why do forms appear slightly higher on the screen than from the position
they are in during design time?

Any help would be much apprecited.

Al
 
J

John Nurick

Is it possible to fix the position of a form on the screen - I can't
find this on form's properties apart from setting the movable property to
No.

If you set the BorderStyle to None the form loses its title bar and
therefore becomes immovable. If you don't want that, the simplest way is
to set BorderStyle to Thin to prevent resizing, and Moveable to No to
prevent the titlebar being moved.

If necessary, use code in the form's Open or Load event to calculate
where you want it to appear and set its Top and Left properties
accordingly.
Why do forms appear slightly higher on the screen than from the position
they are in during design time?

Usually because the toolbars and/or rulers change between design view
and runtime.
 

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

Top