Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
This may sound like a silly question, but I can't seem to find the answer anywhere. I've added a bunch of radio buttons to a GroupBox and I'm trying to find out which of the buttons is selected (when a button is pressed). I don't see any property or method in the GroupBox class to obtain the RadioButton's tab index. A way to solve this problem would be to do this:
RadioButton rb= (RadioButton)myGroupBox.Controls[i];
But the above method does not seem very elegant, so there must be a better way?
Any help would be appreciated.
0 · ·