Example Conditional Select Case on VB.net
Step to made Conditional Select Case 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----
Select Case TextBox1.Text
Case "1"
TextBox2.Text = "One"
Case "2"
TextBox2.Text = "Two"
End Select
End Sub
3. Done compile this program
Comments
Post a Comment