TabControl's ClientSize

  • Thread starter Thread starter Hilton
  • Start date Start date
H

Hilton

Hi,

Shouldn't this be the size (or rectangle for ClientRectangle) *excluding*
the actual tabs? Seems like a bug. Either way, how can I get the actual
usable area excluding the tabs?

Thanks,

Hilton
 
OK, it's this.tabControl.DispayRectangle. I thought ClientRectangle was the
'DisplayRectangle'. So I have a solution?

Nope - not support by the CF. :( (at least according to MS docs)

Any suggestions?

Hilton
 
TabControl.ClientSize doesn't exclude the tabs because tabs are the child
controls.
Have you tried using both TabControl.ClientSize and TabPage.ClientSize? For
example, tabControl.ClientSize.Height - tabPage.ClientSize.Height is the
height of the tabs.
Hope this helps
xin
 
Back
Top