.Net 2.0 Split Container and Tab Control Format Issue

A

amyl

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

Leon Friesema

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
 
S

sb

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
 

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