Public ClassCelsiusConverter
PrivateSub Button1_Click(ByVal sender AsObject, e AsEventArgs)Handles Button1.Click
' TextBox1.Text = (TextBox2.Text + 32) * 5 / 9)
EndSub
End
What's the error?
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
An unhandled exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
Additional information: Conversion from string "" to type 'Double' is not valid.
The program '[3644] Celsius Converter.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
All i need to do is create a simple Celsius to Farenheit Converter.
Class