TabControl.ClientSize doesn't resize Size

  • Thread starter Thread starter vooose
  • Start date Start date
V

vooose

Consider adding a TabPage with size=(300,300) to a TabControl, then
calling

tabControl.ClientSize=tabPage.Size;

You would think tabControl.Size must now be BIGGER than
tabControl.ClientSize to accomadate room for the tabs and borders. In
fact they are the same size!

Compare this to adding a Panel to a Form. Form.Size would be slightly
bigger than Form.ClientSize after you called

form.ClientSize=panel.Size;

Anyone know what's going on?
 
Something else:

Form form = new Form(); //ClientSize is less than Size

TabPage page = new TabPage(); //ClientSize equals Size

TabControl control = new TabControl(); //ClientSize equals Size

I am thinking TabPage is wrong in that ClientSize must be smaller at
least in height to accomadate for the tab name.
 

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

Acoustics - 80Hz loss in car! 0
Memory Leaks 3
Problem with memory leaks 1
Big Problem with Tabcontrol 2
User resizable control. 2
Resizing Window Calculations 1
Image Viewer application 8
Windows 10 Windows 10 Fall Creators Update 15

Back
Top