IkeandMikes
Technical User
I have to make a simple program that changes the text of a button and hides a label on one click and then reverts back again when you click on it a second time. This has been driving me insane and any help is MUCH appreciated.
It's easy to get the things to change on one click, but to get them back without making another form or another button has been driving me crazy.
My simple code is such...
Public Class frmHideSeek
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
lblLanguage.Visible = False
btnDisplay.Text = "Changed "
End Sub
End Class
-- now what do I have to add to get it to change back when click the same button?
It's easy to get the things to change on one click, but to get them back without making another form or another button has been driving me crazy.
My simple code is such...
Public Class frmHideSeek
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
lblLanguage.Visible = False
btnDisplay.Text = "Changed "
End Sub
End Class
-- now what do I have to add to get it to change back when click the same button?