Conditional (IF) Program on VB.net


Example Conditional IF on VB.net


Step to made Conditional IF Program :
1. Add label, 2 textbox and 1 button



2. Double click on button and add the coding :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        '----Write this----
        If Val(TextBox1.Text) > 5 Then
           TextBox2.Text = "True"
        else
           TextBox2.Text = "False"
        End If
End Sub

3. Done compile this program.






Comments