Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#
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 1-Dec-12 1:32am
Comments
Tejas Vaishnav at 1-Dec-12 6:37am
   
Are you looking for Windows application or fro web application?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Hi Dear,

This is simply problem.
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;
}
  Permalink  
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

private void button1_Click(object sender, RoutedEventArgs e)
        {
            if (textBox1.Text="" && textBox2.Text="")
            {
                tabControl2.IsEnabled = true;
            }
        }
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 490
1 Sergey Alexandrovich Kryukov 395
2 Maciej Los 285
3 ProgramFOX 265
4 CHill60 200
0 OriginalGriff 490
1 Sergey Alexandrovich Kryukov 395
2 Maciej Los 285
3 ProgramFOX 265
4 CHill60 200


Advertise | Privacy | Mobile
Web02 | 2.8.150331.1 | Last Updated 1 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100