Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42225

Radio Button not working

$
0
0
Hello, any idea how to fix this:

Code:

        If RadioButton1.Checked = True Then
            TextBox1.Text = "A"
        ElseIf RadioButton2.Checked = True Then
            TextBox1.Text = "B"
        End If

So, I want, when I click (checked) radiobutton 1, in textbox1 appears letter "A", and when I click (checked) radiobutton 2, it should appears in textbox1 letter "B". The problem is with code above, that letter "A" is always in textbox1, it is not change in letter "B", when I click radiobutton2 (and radiobutton1 is unchecked). I also put both radiobuttons in GroupBox, but still not working.

Thanks for your help. :)

Viewing all articles
Browse latest Browse all 42225


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