Trying to create a VB program to convert celcius to farenheit. Nothing fancy.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shibiggy
    New Member
    • Feb 2010
    • 1

    Trying to create a VB program to convert celcius to farenheit. Nothing fancy.

    So I need to Include both the code and the form. As far as writing it I am beyond lost. Cannot seem to get a running program out of my code.

    Public Class Form1

    Private Sub btnConvert_Clic k(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles btnConvert.Clic k
    Label1.Text = (9 / 5) * CSng(TextBox1.T ext) + 32
    End Sub

    Private Sub TextBox1_TextCh anged(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles TextBox1.TextCh anged

    End Sub
    End Class

    btw much respect tot hose who do this for a living.
  • zerok666
    New Member
    • Apr 2008
    • 25

    #2
    Label1.Text = (((9 / 5) * TextBox1.Text) + 32)

    Comment

    Working...