By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,952 Members | 1,619 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,952 IT Pros & Developers. It's quick & easy.

am having two lable for each lable select page should get open

P: 56
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
Expand|Select|Wrap|Line Numbers
  1.   if (status  == 1)
  2.                 {
  3.                     checked
  4.                     {
  5.                         sw = "1";
  6.                     }
  7.                     this.Close();
  8.                     sales1 sales1 = new sales1();
  9.                     sales1._textBox = _textBox1;
  10.                     sales1.Show();
  11.                 }
  12.                     else 
  13.                     {
  14.                         status = 0;
  15.  
  16.                 }
  17.  
  18.                 if (status == 2)
  19.                 {
  20.                     checked { sw = "2"; }
  21.                     this.Close();
  22.                     servc1 servc1 = new servc1();
  23.                     servc1.Show();
  24.                 }
  25.                 else
  26.                 { status = 0; }
  27.                if (status  == 0 )
  28.                 {
  29.                     MessageBox.Show("please enter a valid uname & password");
  30.                     textBox1.Text = "";
  31.                     textBox2.Text = "";
  32.  
  33.                 }
  34.  
  35.         }
  36.  
Mar 6 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.