I'm hoping someone can clarify what I'm doing wrong here. I am trying to make a form with 2 labels - Celsius and Fahrenheit with 2 respective textbooks for the Value and 1 button - Convert to display the conversion of Celsius into Fahrenheit. The following Code I use keeps running me into Strict Options errors, 2 for Option Strict On disallows implicit conversions from 'Object' to 'String' and 2 for Option Strict On disallows implicit conversion from 'String' to 'Double'. I can't seem to find a way to please the strict options.
Private Sub btnConvert_Click(sender As Object, e As EventArgs) Handles btnConvert.Click
Dim celsius As String
Dim answer As String
Dim fahrenheit As String
celsius = txtCelsius.Text
fahrenheit = txtFahrenheit.Text
If String.IsNullOrEmpty(txtFahrenheit.Text) Then
answer = celsius * 9 / 5 + 32
txtFahrenheit.Text = Int(answer)
End If
If String.IsNullOrEmpty(txtCelsius.Text) Then
answer = (fahrenheit - 32) * 5 / 9
txtCelsius.Text = Int(answer)