answersLogoWhite

0

01Private Sub btnConvert_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConvert.Click02 Dim dblTemp As Double

03 Dim dblResult As Double

04 Convert.ToString(txtTemp)

05 If radCelsius.Checked = True Then

06 dblResult = (dblTemp * 9) / 5 - 32

07 ElseIf radFahrenheit.Checked = True Then

08 dblResult = (dblTemp * 5 / 9) + 32

09 End If

10 lblResult.Text = Format(dblResult, ".")

11 End Sub

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Basic unit for temperature?

There are Fahrenheit, Celsius, and Kelvin.


The code of Fahrenheit to celsius code in visual basic?

'make fTemp and cTemp variables and initialize fTemp to a text box cTemp = (fTemp - 32) * 5 / 9


What is the basic unit of temperature?

The basic unit of temperature is the degree Celsius (°C) in the International System of Units (SI).


Can visual basic 2010 save as visual basic 2008?

No you cannot, furthermore you will have to run a conversion tool when trying to open the file. However, it is not a perfect conversion the majority of the time and unless you are converting some pretty basic code it may require some modification to the code (Or it may just not convert at all).


How type of temperature?

4 basic ones Celsius (C) Fahrenheit (F) Kelvin (K) Rankine (R)


What is visual basic control?

Visual Basic Controls work on Visual Studio for Visual Basic and Applications that made by Visual Basic.


What is the basic unit of heat?

Temperature in degreesWe measure how hot or how cold an object is by using:Degrees celsius (Canadian)Degrees Fahrenheit (American)


The year of invention of visual basic?

Visual Basic was started in 1991.


Who invented the visual basic?

Visual Basic was created by a team at Microsoft.


Who developed visual basic?

Microsoft is the developer of visual basic


What is the difference between visual basic and visual c?

The programming language: Visual Basic is a BASIC-like (or BASIC-derived) language, Visual C is... well C.


When visual basic started?

Visual Basic was started in 1991.