E
Edward
hi everybody,
There is an error that drives me crazy and I can't figure out why VB.net
behaves this way.
I have a form and a textbox and the following code in the form Loads event
Dim Ab As Integer
Ab = CInt(TextBox1.Text)
but it generates InvalidCastException ! but I know we can caste from string
to integer so what is going on here ? Any thoughts?
There is an error that drives me crazy and I can't figure out why VB.net
behaves this way.
I have a form and a textbox and the following code in the form Loads event
Dim Ab As Integer
Ab = CInt(TextBox1.Text)
but it generates InvalidCastException ! but I know we can caste from string
to integer so what is going on here ? Any thoughts?