Search This Blog

Saturday, November 20, 2010

Tutorial 4

4. If Statemenets




This tutorial will help you understand what an If Statement is. If Statements will help your application decide what to do in a given situation.

Code

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "hello" Then
Label1.Text = "world"
End If
End Sub

End Class

No comments:

Post a Comment