Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2012 Check Default Radio Button

$
0
0
Hi. I am building a Tic Tac Toe game and I came across some trouble when I was trying to select the Radio Button that the variable states. Heres my code.
Code:

  'Level Selection Enum
    Public Enum GameDifficulty

        optEasy = 0
        optMedium = 1
        optHard = 2
        optTest = 3
    End Enum

    'Default Level
    Public SelectedGameDifficulty As GameDifficulty = GameDifficulty.optTest

    'Check Radio Button

What I am trying to do is select the radio button that the variable SelectedGameDifficulty states but I don't know how. The radio buttons are located on the form and the names for the radio buttons are optEasy, optMedium, optHard, and optTest. Can anybody help me?

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>