我有一个按钮,当点击标签时会显示,但是我用什么代码来获取它,所以当再次点击按钮时它们被隐藏:
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label4.Hide()
Label5.Hide()
Label6.Hide()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("All shortcuts require Shift+(Letter) combination", vbOKOnly, "Shortcuts Active")
Label4.Show()
Label5.Show()
Label6.Show()
End Sub