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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Syed Hadi
    New Member
    • Dec 2012
    • 56

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

    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
    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 = "";
    
                    }
    
            }
    Last edited by acoder; Mar 7 '13, 12:08 PM. Reason: Added text from title
Working...