Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
C# Helper...
 
XML RSS Feed
Follow VBHelper on Twitter
 
 
MSDN Visual Basic Community
 
 
 
 
 
 
TitleSee which option button is selected using Select Case
KeywordsSelect Case, option, control, select
CategoriesControls
 
Use Select Case.

Thanks to Fred Block

 
Private Sub Command1_Click()
    Select Case True
        Case Option1(0).Value
            ' Place code here for option "0".
            MsgBox "0"
        Case Option1(1).Value
            ' Place code here for option "1".
            MsgBox "1"
        Case Option1(2).Value
            ' Place code here for option "2".
            MsgBox "2"
        Case Option1(3).Value
            ' Place code here for option "2".
            MsgBox "3"
    End Select
End Sub
 
Formatted by Neil Crosby
 
 
Copyright © 1997-2010 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated