Hide the tabs on a tab control ...

  • Thread starter Thread starter Martin Robins
  • Start date Start date
M

Martin Robins

Hi,

I would like to display a tab control without tabs; I am trying to create a
simple wizard type form.

Any suggestions?
 
* "Martin Robins said:
Thanks, I remember when the dotnetmagic library was free!

I remember this time too, but I understand that the author wants some
money for this set of controls.
 
Well, they are a bloody good set of controls and always were; I am just not
in the market for commercial solutions.

The TSWizard on Code Project looked the best to me although it requires a
few mods for what I want; I may build in some designer support based upon
the other article whilst I am at it also.

Thanks for your help.
 
Hi,

I would like to display a tab control without tabs; I am trying to create a
simple wizard type form.

Any suggestions?

Coming from Visual Foxpro programming, it was aggravating to not have this as
an option on the tab control (known as a "Pageframe" in VFP). I played around
and finally came up with this solution which meets my needs for a "Tabless Tab
Control"... (Of course being new to .NET, I may be missing an easier
approach).

In the designer, set;

Sizemode to Fixed and Appearance to Buttons (important!)

All that's left is to set Itemsize Width to 0 and Height to 1. I do this at
runtime so that I still have the tabs showing during development.

----> Me.TabControl1.ItemSize = New System.Drawing.Size(0, 1)

Hope that helps!

Regards,
 
Fantastic; thankyou.

Mikish said:
"Martin Robins" <martin - robins @ ntlworld dot com> impressed us all with the
following remark:


Coming from Visual Foxpro programming, it was aggravating to not have this as
an option on the tab control (known as a "Pageframe" in VFP). I played around
and finally came up with this solution which meets my needs for a "Tabless Tab
Control"... (Of course being new to .NET, I may be missing an easier
approach).

In the designer, set;

Sizemode to Fixed and Appearance to Buttons (important!)

All that's left is to set Itemsize Width to 0 and Height to 1. I do this at
runtime so that I still have the tabs showing during development.

----> Me.TabControl1.ItemSize = New System.Drawing.Size(0, 1)

Hope that helps!

Regards,
 
Back
Top