DockStyle problem

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

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 ?
 
* "Lloyd Dupont said:
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.
 
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.
 

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

Similar Threads


Back
Top