Thread: Visual Basic
View Single Post
Old 11-04-2009, 08:07 PM   #6 (permalink)
timeb0mb
Banned
 
Join Date: May 2009
Location: USA. Unified Sarcastic Anal... something...
Posts: 591
Reputation: 9
Default

Code:
    Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button.Click
        If Button.Text = "Hello." Then
            Label.Text = "Hi!"
            Button.Text = "How are you?"
        ElseIf Button.Text = "How are you?" Then
            Label.Text = "I'm fine."
            Button.Text = "I'm great!"
        ElseIf Button.Text = "I'm great!" Then
            Label.Text = "That's good to hear!"
            Button.Dispose()
        End If

    End Sub
This is how to do it
Button.Dispose makes the button invisible after your conversation is over ^^
If you need any other help with VB.Net, feel free to ask.
timeb0mb is offline   Reply With Quote