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; }
private void button1_Click(object sender, RoutedEventArgs e) { if (textBox1.Text="" && textBox2.Text="") { tabControl2.IsEnabled = true; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)