Hello,

I am creating a MDI child window from a MDI parent window. I have tried
setting the Left and Top members before calling Show() and it seems to have
no effect. If I set Left and Top after calling Show() the form flashes in
the default location and moves into the position I set with Left and Top.

My question is how do I get the MDI child to appear in the location that I
want, without the flash?

Thanks,
Shawn

Re: MDI Positioning by Leon

Leon
Tue Apr 11 16:24:22 CDT 2006

On Tue, 11 Apr 2006 12:56:02 -0700, Shawn M.
<ShawnM@discussions.microsoft.com> wrote:

>Hello,
>
>I am creating a MDI child window from a MDI parent window. I have tried
>setting the Left and Top members before calling Show() and it seems to have
>no effect. If I set Left and Top after calling Show() the form flashes in
>the default location and moves into the position I set with Left and Top.
>
>My question is how do I get the MDI child to appear in the location that I
>want, without the flash?
>
>Thanks,
>Shawn

Don't use WindowsDefaultLocation for StartPosition

Leon

Re: MDI Positioning by sb

sb
Tue Apr 11 16:50:14 CDT 2006

Have you set the child window's StartPosition to Manual first? You'll see
the property in the Form designer.

-sb

"Shawn M." <ShawnM@discussions.microsoft.com> wrote in message
news:D344B22F-0139-45DA-BC5D-9DEE20C2008A@microsoft.com...
> Hello,
>
> I am creating a MDI child window from a MDI parent window. I have tried
> setting the Left and Top members before calling Show() and it seems to
> have
> no effect. If I set Left and Top after calling Show() the form flashes in
> the default location and moves into the position I set with Left and Top.
>
> My question is how do I get the MDI child to appear in the location that I
> want, without the flash?
>
> Thanks,
> Shawn



Re: MDI Positioning by ShawnM

ShawnM
Tue Apr 11 17:24:01 CDT 2006

Thanks, I totally overlooked that one.

"sb" wrote:

> Have you set the child window's StartPosition to Manual first? You'll see
> the property in the Form designer.
>
> -sb
>
> "Shawn M." <ShawnM@discussions.microsoft.com> wrote in message
> news:D344B22F-0139-45DA-BC5D-9DEE20C2008A@microsoft.com...
> > Hello,
> >
> > I am creating a MDI child window from a MDI parent window. I have tried
> > setting the Left and Top members before calling Show() and it seems to
> > have
> > no effect. If I set Left and Top after calling Show() the form flashes in
> > the default location and moves into the position I set with Left and Top.
> >
> > My question is how do I get the MDI child to appear in the location that I
> > want, without the flash?
> >
> > Thanks,
> > Shawn
>
>
>