Hello to Everyone
i am working on a project .I have a vb form having three Groupboxes and three buttons to control each box. I want that when i click on button one,it shows the Groupbox1 and when i click on button 2 it shows groupbox2 and so on.The code for this purpose i m using is given below.But it shows only first Groupbox.Please Help me by any experience person to correct this code or any other best option.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
GroupBox1.Visible = (GroupBox2.Visible = False)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
GroupBox1.Visible = (GroupBox2.Visible = True)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
GroupBox1.Visible = (GroupBox3.Visible = True)
End Sub
End Class