I have the following:
sub submitQuestion_ click(Sender as Object, e as EventArgs)
Dim submitButton as Button = CType(sender,Bu tton)
This gives me an error that says:
" System.InvalidC astException: Specified cast is not valid. "
Why is that?
Sender is a button.
Tom
sub submitQuestion_ click(Sender as Object, e as EventArgs)
Dim submitButton as Button = CType(sender,Bu tton)
This gives me an error that says:
" System.InvalidC astException: Specified cast is not valid. "
Why is that?
Sender is a button.
Tom
Comment