am having two lable for each lable select page should get open but when i am getting login from two lable any form is getting open .....
can any body give me idea ............... . how to do this here is my code
can any body give me idea ............... . how to do this here is my code
Code:
if (status == 1) { checked { sw = "1"; } this.Close(); sales1 sales1 = new sales1(); sales1._textBox = _textBox1; sales1.Show(); } else { status = 0; } if (status == 2) { checked { sw = "2"; } this.Close(); servc1 servc1 = new servc1(); servc1.Show(); } else { status = 0; } if (status == 0 ) { MessageBox.Show("please enter a valid uname & password"); textBox1.Text = ""; textBox2.Text = ""; } }