Home All Groups Group Topic Archive Search About

Changing control's visibility does not rearrange docked controls

Author
12 Apr 2006 11:37 PM
Netter
I have two controls on a form.

The first is Dock top and the second is dock Fill

When the first changes from not visible to visible the second does not move
down. That is the top of the one that is Dock Fill is covered by the one
that is Dock Top.

Is there a way to fix that?


thanks

Author
12 Apr 2006 11:47 PM
Vijay
After .Visible = true, you could try
    <Control>.SendToBack or <Control>.BringToFront
either one should do the gig..

Vijay

Show quoteHide quote
" Netter" <netterNOSPAM@a-znet.com> wrote in message
news:u2sgdooXGHA.3604@TK2MSFTNGP02.phx.gbl...
>I have two controls on a form.
>
> The first is Dock top and the second is dock Fill
>
> When the first changes from not visible to visible the second does not
> move down. That is the top of the one that is Dock Fill is covered by the
> one that is Dock Top.
>
> Is there a way to fix that?
>
>
> thanks
>
>
>
>
Author
13 Apr 2006 12:04 AM
Netter
"Vijay" <vi***@msdiscussions.com> wrote in message
news:uHvYztoXGHA.1192@TK2MSFTNGP03.phx.gbl...
> After .Visible = true, you could try
>    <Control>.SendToBack or <Control>.BringToFront
> either one should do the gig..
>


Doesn't matter if I send to the back or the front?
A little hard to understand.

Thanks, I'll try it now.



Show quoteHide quote
> Vijay
>
> " Netter" <netterNOSPAM@a-znet.com> wrote in message
> news:u2sgdooXGHA.3604@TK2MSFTNGP02.phx.gbl...
>>I have two controls on a form.
>>
>> The first is Dock top and the second is dock Fill
>>
>> When the first changes from not visible to visible the second does not
>> move down. That is the top of the one that is Dock Fill is covered by the
>> one that is Dock Top.
>>
>> Is there a way to fix that?
>>
>>
>> thanks
>>
>>
>>
>>
>
>