ºÝºÝߣ

ºÝºÝߣShare a Scribd company logo
Vs c# lecture11
Vs c# lecture11
The ErrorProvider alerts the user that something is wrong.
private void button1_Click(object sender, EventArgs e)
{
if(textBox1.Text=="Saman")
{
if(textBox2.Text=="1234")
{
Form2 fr = new Form2();
fr.Show();
this.Hide();
}
else
{
errorProvider1.SetError(textBox2, "Wrong Password !");
}
}
else
{
errorProvider1.SetError(textBox1, "Wrong User Name");
}
}
The ErrorProvider alerts the user that something is wrong.
indicates visually the progress of an operation.
Progress bar properties
? Minimum
? Maximum
? Value
? Step
Example 2
Timer Properties
ProgressBar 1(hours),2(minutes) &3(seconds)Properties
private void timer1_Tick(object sender, EventArgs e)
{
progressBar1.Value = DateTime.Now. Hour;
progressBar2.Value = DateTime.Now. Minute;
progressBar3.Value = DateTime.Now. Second;
}
Run
Vs c# lecture11

More Related Content

Vs c# lecture11