"Hans" <in**@tct.nl> wrote in message
news:44**********************@text.nova.planet.nl. ..
How can I get the value from a Checkbox as control based on controls index
instead of controlname?
I need something like: Value=Controls(1).checked
Hans
Umm, by casting the control to the valid type:
Value = DirectCast(Controls(1), CheckBox).Checked
You should also make sure the control is of type CheckBox before you perform
the cast, otherwise you may get an InvalidCastException.
HTH,
Mythran