Thursday, September 25, 2008

Sample Visual Basic Program - Convert Celsius and Farenheit


This Program computes for celcius and farenheit


'celsius
Private Sub Command1_Click()
Text2.Text = (5 / 9) * (Text1.Text - 32)

End Sub

'farenheit
Private Sub Command2_Click()
Text2.Text = (9 / 5) * Text1.Text + 32
End Sub

1 comment:

kentlee said...

hi..i doin volume of cylinder..
can u teach me somtin?
how to make the final answer to 2 decimal places?
thx..