Skip to content
Loading
  • +1

    @Sachin, it did work. However, I am trying to use this code as well

    private void btnUserUpdate_Click(object sender, EventArgs e)
            {
                User_Update x = new User_Update();
                x.Show();
                this.Hide();
            }

    +1
  • Sachin Singh
    +1
    you want to highlight button on click then
    1. private void btnUserUpdate_Click(object sender, EventArgs e)  
    2. {  
    3. this.Hide();  
    4. Button btn = sender as Button;  
    5. btn.BackColor = Color.Yellow;  
    6.    
    7. User_Update x = new User_Update();  
    8. x.Closed += (s, args) => this.Close();  
    9. x.Show();  
    10. }  
     
    +1
  • +1
    @Sachin, the code that you have provided does not work
    +1