Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radio button question

Status
Not open for further replies.

dinger2121

Programmer
Sep 11, 2007
439
0
0
US
Hello,
How do I make one option of a radion button a text box so the user can enter their own data if it does not fit one of the options?
Thanks
 
1) Put a checkbox (with no text on its right side) on the form

2) Put a text box on right side of it.

3) Then you will have to interlink both of them in the event handler of checkbox_checkChanged(). i.e When checkbox is checked, enable editing in the text box and vice versa

4) Also when getting the values from checkboxed, you need to check if radio button is checked and it it is, then get the value of the text box.

Hope this helps

Ch Saj
 
If you need a control like this in multiple places, do like sajdi99 suggests but put it into a usercontrol and expose the properties/methods you need.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top