MDI Form Position

H

Hamed

Hello

Two questions about positioning:

When I run my MDI application developed by VS.NET 2003, the MDI window is
opened in a new place and after some run again and again, it opens in a
position that some borders of MDI form goes out of the desktop.

The WindowState of MDI form is in Normal state.

Q1: How can I open my form in a position that the form is not gone out of
desktop

Q2: How can I position in the same position as previously opened in the last
run.

Thanks in advance.

Hamed
 
G

Guest

The startup location is a property on the form called StartupLocation. This
can be used to startit center screen or something. To make it start where is
was last time you would need to handle the changing of the location and save
the new location to the registry or something. Then load it in the form
constructor and set the property.

HTH


Ciaran O'Donnell
 

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