Skip to content

Instantly share code, notes, and snippets.

@shahrulnizam
Created May 12, 2013 01:17
Show Gist options
  • Save shahrulnizam/5562025 to your computer and use it in GitHub Desktop.
Save shahrulnizam/5562025 to your computer and use it in GitHub Desktop.
VB Lesson: Variable
Public Class Form1
Dim message As String = "Value"
Dim number As Integer = 123
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = message
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Label1.Text = number
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment