I have a GUI which I design with VS.NET.
basically I have tabs and I put control at the top or bottom by setting
their Dock property to Top or Bottom.

then (after the InitializeComponent()) method I add some other widget in the
tabs, with the aim to fill the remaining space by setting their Dock
property to Fill

unfortunately the new control seems not to take the remaining space, but the
whole space of the Tab page !
(and are partially obscured by previously adde control)
is that really normal ?
how to fix that ?

Re: DockStyle problem by hirf-spam-me-here

hirf-spam-me-here
Sun Dec 14 06:31:57 CST 2003

* "Lloyd Dupont" <net.galador@ld> scripsit:
> I have a GUI which I design with VS.NET.
> basically I have tabs and I put control at the top or bottom by setting
> their Dock property to Top or Bottom.
>
> then (after the InitializeComponent()) method I add some other widget in the
> tabs, with the aim to fill the remaining space by setting their Dock
> property to Fill
>
> unfortunately the new control seems not to take the remaining space, but the
> whole space of the Tab page !
> (and are partially obscured by previously adde control)
> is that really normal ?

I am not able to repro that. Post your code.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Re: DockStyle problem by Eric

Eric
Mon Dec 15 09:40:01 CST 2003

Try calling BringToFront() on the control that is being clipped (filled). If
your in the designer - right click the control that is DockStyle.Fill and
choose Bring to Front.

HTH;
Eric Cadwell
http://www.origincontrols.com



Re: DockStyle problem by Lloyd

Lloyd
Mon Dec 15 17:00:21 CST 2003

I found a simple work around.
with the designer I had a panel with DockStyle.Fill, which behave correctly.
then I put my stuff inside this panel.

I have nonetheless the feeling it looks like a bug.

"Eric Cadwell" <ecadwell@ns.insight.com> wrote in message
news:uFTpxMywDHA.2520@TK2MSFTNGP10.phx.gbl...
> Try calling BringToFront() on the control that is being clipped (filled).
If
> your in the designer - right click the control that is DockStyle.Fill and
> choose Bring to Front.
>
> HTH;
> Eric Cadwell
> http://www.origincontrols.com
>
>