tab controls - removing teh tab click

Hi,

I am using a tab control and what I am trying to do is eliminate the ability to click the tab to go to the next tab page.

I want to use a Next button on the bottom of each tab page to iterate though the next tab pages..


thanks


LVL 7
foobarrAsked:
Who is Participating?
 
bruintjeConnect With a Mentor Commented:
Hello foobarr,

then you better remove the tabs altogether, preventing a wrong user impression. Clicking a tab is natural having it there wtihout being able to use it confuses

you can add this line to your form load to hide the tabs

TabControl1.Region = new Region(new RectangleF(TabPage1.Left,TabPage1.Top,TabPage1.Width,TabPage1.Height()))

hope this helps a bit
bruintje
0
 
foobarrAuthor Commented:
I initially was not going to use the tab pages but then I realized it would make designing what i wanted a lot easier...

I just dont want the tabs to be used because this is going on a touch screen monitor its sort of like the tabs represent a process from step 1 to step 5

so i dont want to give the ability to skip any steps
0
 
bruintjeCommented:
then removing them anyhow is no problem they will be visible in design time so you can still use them,

it will also look better :)

just have a label displaying step x of 5, and the buttons back, next, cancel
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
Éric MoreauSenior .Net ConsultantCommented:
see an article I wrote in May 2004 at http://emoreau.s2i.com/
0
 
foobarrAuthor Commented:
I read teh article on tabs (i think i was reading the right one)

but you wrote something along the lines of clear the tab control and then adding the tab pages

i tried that but it didn't solve what i was looking for...

0
 
Éric MoreauSenior .Net ConsultantCommented:
Instead of clearing all the tabpages, you can Remove a single TabPage and re-add it later.
0
 
Éric MoreauSenior .Net ConsultantCommented:
or maybe you can just disable it
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.