Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Been working on last VB program due for class need help!!!

$
0
0

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


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>