Problems with changing groups.

Hello,

I have had Visual Basic for a while, and I'm working on a project for school. Currently it is done. Except, when I click the button (that HAVE been programmed) they do not open their Group. 2 of the 5 buttons for groups work. I was wondering if anyone else has had the problem, and if they could help me solve it.

Below is a snippet from one of my working buttons, and non-working.

Working:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

GroupBox1.Visible = True

GroupBox2.Visible = False

GroupBox3.Visible = False

GroupBox4.Visible = False

GroupBox5.Visible = False

Button7.Visible = True

End Sub

Not Working:

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

GroupBox1.Visible = False

GroupBox2.Visible = True

GroupBox3.Visible = False

GroupBox4.Visible = False

GroupBox5.Visible = False

Button7.Visible = True

End Sub

Thanks




Answer this question

Problems with changing groups.

  • cagii

    hi,

    during developing you many delete or rename things in your project and that could cause problems in your designer code if you forgot something during developing .

    select your not working button , go to your properties tab and you will find at top icon like flash click it, it will open all the events tab for your button the see the click event and rebind it to this method again and test your project again

    best regards



  • Problems with changing groups.