Solved

Vb.Net - TabControl Hide Tab

Posted on 2013-05-28
4
524 Views
Last Modified: 2013-05-29
Good Day Experts!

I have searched online but I am not quite sure how to go about this new task.  My application is centered around a Form that has a tabControl on it.  Currently there are 19 tabs on it.  The 20th Tab I added is the one causing the trouble.  I want to hide it for all but 3 Users.  So, in the Form_Load I am checking for Username but I cannot seem to get the syntax down for how to hide the tab.  Also, I am not sure what is going to happen when I have to add a tab for all Users to see right after the one I am hiding based on User.

What do you think?

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
  • 2
4 Comments
 
LVL 4

Expert Comment

by:frankd
Comment Utility
I usually check for proper user on enter and go to another tab if that user isn't allowed.  Something like;
If User not allowed then
     TabControl1.SelectedTab = TabPage7    ' some other tab page
end if

I may be wrong, but I don't think you can hide a tab.
0
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
Comment Utility
0
 

Author Comment

by:Jimbo99999
Comment Utility
Excellent...thanks I will try this morning.
0
 

Author Closing Comment

by:Jimbo99999
Comment Utility
Thanks, it is working now.

Appreciate the help,
jimbo99999
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now