Tab Control Problem

  • Thread starter Thread starter Biju
  • Start date Start date
B

Biju

Hi,

I am using the tab control to do wizard development. I
show a tab page at a time to get the wizard feeling. This
also helps in switching between tabs at design time.

My problem is, I am not able to set the item size of the
tab control to 0. The minimum is 1. This causes the tab
control to display the tab buttons as tiny dots on the
screen, which are clickable.

Is there a way to set the item size to zero?

Also an alternate way to develop wizard pages would be
greatly appreciated. I do not want to use a third party
control, as the requirements are very specific. The
panels also does not help as they become difficult to
manage at design time

Thanks in advance....
Biju
 
Biju,
I suppose a rather *hackish* workaround would be to simply position
a panel over the top of the the tabs. This would prevent a user from
clicking on them. However, then there is the problem of tab selection.
The simplest workaround to prevent the user from tabbing to another
page would be to use the Tab's Enter Event; when this event is
triggered, simply activate the next control in line and everything is
hunkydory (well, okay, maybe not hunkydory, but you get the picture).

-WDaquell
 
The tab control is not really a good control to use in this way.

Although you can hide the tabs, you will still be able to navigate via
keyboard.

One way to stop navigation is to disable the tabpages that the user cannot
access, and another is to add and remove tabpages as their access level
changes.

An alternative is to use a Wizard Control such as this one found on
CodeProject.
https://secure.codeproject.com/cs/miscctrl/DesignTimeWizard.asp
 
Back
Top