On a form with lots of radio buttons I'm trying to place the name of the clicked button on a label without doing Select Case or If -Then statements.
How to drill down to the name of the clicked control in the controls collection?
I'd like to have something like:
lblName = Sender.xxx.xxxx.name
I've tried sender.gettype.name.tostring but it gives me the name of the type of the control - RadioButton
Thank you.
How to drill down to the name of the clicked control in the controls collection?
I'd like to have something like:
lblName = Sender.xxx.xxxx.name
I've tried sender.gettype.name.tostring but it gives me the name of the type of the control - RadioButton
Thank you.