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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radiobutton and checkbox controls in C#

Status
Not open for further replies.

yfbf

Programmer
Oct 2, 2004
24
BE
Hi,

I using 5 radiobuttons in a GroupBox and 5 checkbox controls.
I looking to find wich index of the group of radiobutton and the index of the checkbox group

Can you help me ?
 
C# (and .NET generally) does not support control arrays in the way VB6 did (which is what I think you are comparing to).

If you need an index, how about storing the index value in the Tag property of each radio button and check box. You can then loop through the controls, and when you find a selected item you can get the index from the Tag.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top