moreover, this work around, just force windows to not redraw the tabs,
but i don'tt get back the space used by these "hidden" tab...
just by changing the background color of TabPage, you can see that you
loose all the space used normally by the tab sheet..
i used another tip like that :
where TCPreferences is a TabControl object :
TCPreferences.Appearance = TabAppearance.Buttons
TCPreferences.SizeMode = TabSizeMode.Fixed
TCPreferences.ItemSize = New Size(0, 1)
it reduce a much as possible this unused space let by tabs in your case.
but it's still during the runtime mode...not during design time mode.
:(
Maileen
Herfried K. Wagner [MVP] wrote:
"Maileen" <no****@email.com> schrieb:
So, in this case how can i do the same thing with Tabcontrol of .NET ?
for now i just found a work around because thanks TabCOntrol we can
not hide the tabs :(
Why not? I posted a solution yesterday...
\\\
Me.TabControl1.Region = _
New Region( _
New RectangleF( _
Me.TabPage1.Left, _
Me.TabPage1.Top, _
Me.TabPage1.Width, _
Me.TabPage1.Height _
) _
)
///