|
-
May 5th, 2013, 03:44 PM
#1
Thread Starter
Lively Member
Radio Button not working
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|