Sunday, November 14, 2010

In VB 08 how do you use radio buttons to change between textboxes?

This is what I'm working with:

3 Radio Buttons and 3 Text Boxes, each Text Box belongs to a Radio Button



This is what I want to be able to do:

I want to be able click on a radio button (making the green dot appear) and once one of the radio buttons is clicked, I want this to disable the corresponding text box.



I'm bad at VB so go easy on me.



Thanks for your help.In VB 08 how do you use radio buttons to change between textboxes?
In the click event of the option button:



Me.TextBox1.Enabled = not( Me.Option1.Value )In VB 08 how do you use radio buttons to change between textboxes?
Haven't played with VB08, but essentially it would be something like



If me.Optionbutton1 = True Then

me.Textbox1.Enabled = False

Endif

No comments:

Post a Comment