471,348 Members | 1,333 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

TabControl.ClientSize doesn't resize Size

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?
--
Wal
http://www.vooose.com

*** Sent via Developersdex http://www.developersdex.com ***
Dec 2 '05 #1
1 3834
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.

--
Wal
http://www.vooose.com

*** Sent via Developersdex http://www.developersdex.com ***
Dec 2 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ken Lee | last post: by
3 posts views Thread by Steve Cutting | last post: by
9 posts views Thread by Michael Turner | last post: by
3 posts views Thread by Xwire | last post: by
reply views Thread by Patrick Lioi | last post: by
4 posts views Thread by Martijn Mulder | last post: by
2 posts views Thread by Simon Verona | last post: by
8 posts views Thread by nirdeshonline | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.