okay, this is my problem. I have a problem where when I select selectedindex = 2, when it is first run, the code doesn't work to display the panel, I have to select selectedindex = 1 before selecting selectedindex = 2.
The question is, how can I display the panels at selectedindex = 2 without having to select selectedindex = 1 first.
Here is the code that I used
Private Sub choose(sender As Object, e As EventArgs) Handles choose1.SelectedIndexChanged
If choose1.SelectedIndex = 1 Then
luaspersegi.Visible = True
kelilingpersegi.Visible = False
ElseIf choose1.SelectedIndex = 2 Then
kelilingpersegi.Visible = True
End If
And this my result
As you can see in the picture, when I select "Keliling" which is selectedindex = 2, the panel that I have hidden will appear but it will not appear. I have to select selectedindex = 1 first then select selectedindex = 2 to bring up the panel.