473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Tab Control Problem

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

Nov 22 '05 #1
3 3489
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

Nov 22 '05 #2
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/mi...TimeWizard.asp

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Biju" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
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

Nov 22 '05 #3
Thanks for both the answers. I guess I will have to
implement both the strategies.
Biju
-----Original Message-----
Biju,
I suppose a rather *hackish* workaround would be to simply positiona panel over the top of the the tabs. This would prevent a user fromclicking on them. However, then there is the problem of tab selection.The simplest workaround to prevent the user from tabbing to anotherpage would be to use the Tab's Enter Event; when this event istriggered, simply activate the next control in line and everything ishunkydory (well, okay, maybe not hunkydory, but you get the picture).
-WDaquell

.

Nov 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Sagaert Johan | last post by:
I have made a custom control that draws a rectangle when the mouse is down, and does nothing when the mouse is up. I set/reset a flag in MouseDown/Mouse up and use this to do the drawing in the...
11
by: Brian W | last post by:
Yet another editor problem To reproduce do the following 1) Open a Webform and switch to HTML edit mode 2) Enter the Following (include spaces) This is some text before <asp:hyperlink...
3
by: Eric | last post by:
I have built a composite user web control that I want to create dynamically. The form will contain a variable number of these controls and as well some of the contents of the user web control...
2
by: Brian | last post by:
NOTE ALSO POSTED IN microsoft.public.dotnet.framework.aspnet.buildingcontrols I have solved most of my Server Control Collection property issues. I wrote an HTML page that describes all of the...
7
by: Shimon Sim | last post by:
I have a custom composite control I have following property
7
by: Chuck Hartman | last post by:
I have a Windows service that requests web pages from a site using an HttpWebRequest object. When I try to request a page from an ASP.NET 2 site, I get a WebException with message "The remote...
5
by: Segfahlt | last post by:
I need a little help here please. I have 2 win forms user controls in 2 different projects that I'm hosting in 2 different virtual directories. The controls have been test and operate okay in...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
5
by: tony | last post by:
Hello! This is a rather long mail but it's a very interesting one. I hope you read it. I have tried several times to get an answer to this mail but I have not get any answer saying something...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.