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

RE: MDI Form Position by CiaranODonnell

CiaranODonnell
Mon Sep 18 03:21:02 CDT 2006

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

"Hamed" wrote:

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