google.com, pub-4617457846989927, DIRECT, f08c47fec0942fa0 Learn to enjoy every minute of your life.Only I can change my life.: Program in Visual Basic for Celsius to farheniet

Saturday, February 7, 2015

Program in Visual Basic for Celsius to farheniet

Dim c As Double
Dim f As Double


Private Sub CmdClr_Click()
TxtInput.Text = ""
    TxtInput.SetFocus
End Sub

Private Sub Command1_Click()
c = Val(TxtInput.Text)
If Val(c) = 0 And TxtInput = "" Then
    MsgBox "Enter Any number", vbInformation, "Result"
    TxtInput.SetFocus
    Else
    f = 9 * c \ 5 + 32
    MsgBox "Fahrenheit :" & "   " & f, vbInformation, "Result"
   
End If

End Sub

Private Sub Command2_Click()
f = Val(TxtInput.Text)
If Val(c) = 0 And TxtInput = "" Then
    MsgBox "Enter Any number", vbInformation, "Result"
    TxtInput.SetFocus
    Else
    c = (f - 32) * 5 \ 9
    MsgBox "Celsius :" & "   " & c, vbInformation, "Result"
   
End If
End Sub



रामायण

रामायण दशरथ की तीन पत्नियाँ – कौशल्या, सुमित्रा , कैकेयी दशरथ के चार पुत्र – राम,लक्ष्मण,भरत,शत्रुघ्न दशरथ: राम के पिता और कौशल के राजा कौशल...