Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have created a module which stores username and usertype at application level.

login from has name ,password and usertype , usertype is admin or employee

on logged in [main form]
how i can hide TabControls one of tabpage called employee if logged user is employee
because employee Tab contain details of all employee in organisation.
Posted

1 solution

compare the code by
if(txtusertype.text == "Admin")
{
enable tabs
tab1.enabled = true;
}
else
{
disable tabls
tab1.enabled = false;
}
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900