I have a label (label1) on my form and its text value is “View Details”. What I would like to do is if the user clicks on the view details label; one, change the label1.text value to “Hide Details” and show groupbox1; secondly, if the user now clicks on the label1.text value of “ Hide Details”, make groupbox1.visibility = false and label1.text value back to “View Details”
I currently have the following code but I can not figure out how to make the next click event revert back to the original of groupbox1.visible = false and label1.text = “View Details”
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
GroupBox1.Visible = True
Label1.Text = "Hide Details"
Thanks in advance