Report Offensive Message

What's matter with you, you want me to pick your nose for you as well?
Turns out there's no as operator in vb.net, well hey I knew there was a reason I used a proper language.

try

if TypeOf ctrl is RadioButton
rb = DirectCast(ctrl, RadioButton)
if rb.Checked
'etc..
endif
endif

Put some effort in or give up now, ffs. Took me about 30 seconds to google that.
Posted by Tony Hopkinson
Updated - 28th Dec