|
-
Apr 22nd, 2007, 09:54 AM
#1
Thread Starter
Junior Member
[RESOLVED] [2005] Button Click Event Procedure
When the button is pressed the name VB 2005 should disappear and the caption should change to "show name of Language", and when the button is clicked again the VB 2005 appears again and the button caption reverts to Hide name of Language, I got the first part to work but reverting the process is not working
Private Sub btnDisplay_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles btnDisplay.Click
If btnDisplay.Text = "Hide name of Language" Then
lblLanguage.Hide()
btnDisplay.Text = "Show name of Language"
Else
lblLanguage.Show()
btnDisplay.Text = "Hide name of Language"
End If
End Sub
Last edited by peterdfl; Apr 22nd, 2007 at 08:12 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|