VBSyntax UserInputFromSetOptions
VBSyntax UserInputFromSetOptions
NET Guide
Check Boxes
Check boxes allow the user to tick the options they want to choose. They can
select more than one box.
Page 1 of 3
SEB’s VB.NET Guide
Combos
Combos allow the user to select from a dropdown box
Option Buttons
Option buttons allow the user to choose between the options available.
List#.AddItem “Option”
or
2. Use an IF statement or a case statement to set to code the effect of the user’s choice.
If List#.ListIndex = 0 Then
Image1.Visible = True
ElseIf List#.ListIndex = 1 Then
Image2.Visible = True
Else
Image3.Visible = True
End If
This code assumes all images have previously been set to visible = false. The
ListIndex numbers the options in the list, starting with 0. The case statement is
similar to IF: it is designed for use with a large number of options. The following
case statement would work in the same way.
Page 2 of 3
SEB’s VB.NET Guide
Page 3 of 3