Click here to Skip to main content
15,886,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use 2 Tab control. 1 is inside the another. then i want user_Id & password , when this is true then next tab page will open or access.

how can it possible?
Posted
Comments
Tejas Vaishnav 1-Dec-12 6:37am    
Are you looking for Windows application or fro web application?

Hi Dear,

This is simply problem.
C#
if((UserId.Text == "ABC") && (Password.Text == "123")) // if Condition is true then tabControl1 enable is true Otherwise false.
{
   tabControl1.Enabled = true;
}
else
{
   tabControl1.Enabled = false;
}
 
Share this answer
 
v2
C#
private void button1_Click(object sender, RoutedEventArgs e)
        {
            if (textBox1.Text="" && textBox2.Text="")
            {
                tabControl2.IsEnabled = true;
            }
        }
 
Share this answer
 

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



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