link radio button to textbox

  • Thread starter Nicholas Paldino [.NET/C# MVP]
  • Start date
N

Nicholas Paldino [.NET/C# MVP]

Peted,

Why not just create an event handler for the click event of the radio
buttons, and link them all to the same event handler? You can tell which
radio button triggered the event by checking the sender parameter of the
event handler, and then have your logic work based on that.

Hope this helps.
 
P

Peted

I have 6 radio buttons in a column with a single line text box next to
each rb.

is there a general straightforward way to link a radio button to the
textbox next to it.

I want to be able to click on any of the rb in the column and from
that click derive the contents of the textbox next to it that it is
"linked" to.

I hope thats clear, what im asking.

i know the controls are stored as an array of controls if i put them
in a panel, but there doesnt seem to be anyway to predict or match the
index number of the control to make use of it


thanks for any info
 
P

Peted

yeah, i was hoping there was a way of "linking" the two controls
together, so i could derive a connection to the textbox after deriving
the radiobutton that was clicked.

I was thinking perhaps i could assign the textbox to the rb tag object
propertiy perhaps
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top