I am having a layout issue I can't seem to work out in Visual Studio
2005. I have a Windows form with a Split Container. In the second
panel (right side) I have a tab control. The tab control has anchor
properties of left, right, top, and bottom. It also has its dock
property set to "Fill".

When the application loads the tab control is properly sized to 100% of
the second panel in the split container. When I pull the splitter to
the left the tab control does not autosize with the splitter panel as
it gets larger.

If I use the forms minimize or maximize buttons it corrects the size
issue of the tab control for the spilt I put into the panel.

Am I missing something to that I need to set on one of those controls
so that the tab control grows with the panel as it gets larger?

Any advise?
Amy.

Re: .Net 2.0 Split Container and Tab Control Format Issue by Leon

Leon
Tue Apr 11 16:27:04 CDT 2006

On 11 Apr 2006 11:55:16 -0700, amyl@paxemail.com wrote:

>I am having a layout issue I can't seem to work out in Visual Studio
>2005. I have a Windows form with a Split Container. In the second
>panel (right side) I have a tab control. The tab control has anchor
>properties of left, right, top, and bottom. It also has its dock
>property set to "Fill".
>
>When the application loads the tab control is properly sized to 100% of
>the second panel in the split container. When I pull the splitter to
>the left the tab control does not autosize with the splitter panel as
>it gets larger.
>
>If I use the forms minimize or maximize buttons it corrects the size
>issue of the tab control for the spilt I put into the panel.
>
>Am I missing something to that I need to set on one of those controls
>so that the tab control grows with the panel as it gets larger?
>
>Any advise?
>Amy.

You're absolutely right. Bug or not; set the
SplitContainer_SplitterMoved event:

private void splitContainer1_SplitterMoved(object sender,
SplitterEventArgs e)
{
this.Refresh();
}

Does the trick

Leon

Re: .Net 2.0 Split Container and Tab Control Format Issue by sb

sb
Tue Apr 11 16:48:14 CDT 2006

I posted this bug to the framework beta website a couple of months ago...I
didn't get a response but they should definitely be aware of it. Hopefully
it will get fixed.

-sb

<amyl@paxemail.com> wrote in message
news:1144781716.727390.299300@t31g2000cwb.googlegroups.com...
>I am having a layout issue I can't seem to work out in Visual Studio
> 2005. I have a Windows form with a Split Container. In the second
> panel (right side) I have a tab control. The tab control has anchor
> properties of left, right, top, and bottom. It also has its dock
> property set to "Fill".
>
> When the application loads the tab control is properly sized to 100% of
> the second panel in the split container. When I pull the splitter to
> the left the tab control does not autosize with the splitter panel as
> it gets larger.
>
> If I use the forms minimize or maximize buttons it corrects the size
> issue of the tab control for the spilt I put into the panel.
>
> Am I missing something to that I need to set on one of those controls
> so that the tab control grows with the panel as it gets larger?
>
> Any advise?
> Amy.
>