Hi

Temperature Converter Program in Visual Basic

SHARE:

Temperature Converter Program in Visual Basic

Most of the visual basic users think that a temperature converter program in visual basic is very difficult to make but it is very easy and short program in VB.

How to Create a Program in VB to Convert Temperature?


So to know how to create program in VB to convert temperature then follow these steps which we are made for you.

Step 1: –

  • At first open Visual Basic 6.0 application software

  • Then click on or select ‘Standard EXE’ icon from New Project dialog box

  • Then click on ‘Open’.

Step 2: –

Form Design: –



Select necessary Control Tool from Tool Box and adjust position to ‘Form Window’: –

  • Two Label Box

  • Two Text Box

  • Three Command Box
Temperature Converter Program in Visual Basic



Step 3: –

Properties Settings: –

  • Select ‘Form1’from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Form1’ to ‘Temperature Converter’ from properties window

  • Then select ‘Label1 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Label1’ to ‘Fahrenheit’ from Properties Window.

  • Then select ‘Label 2 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Label 2’ to ‘Celsius’ from Properties Window.

  • Then select ‘Text 1 box’ from Form Window and select ‘Text’ from Properties Window

  • Then remove ‘Text 1’ from Properties Window.

  • Then select ‘Text 2 box’ from Form Window and select ‘Text’ from Properties Window

  • Then remove ‘Text 2’ from Properties Window.

  • Then select ‘Command1 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Command1’ to ‘CONVERT’ from Properties Window.

  • Then select ‘Command 2 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Command 2’ to ‘CLEAR’ from Properties Window

  • Then select ‘Command 3 box’ from Form Window and select ‘Caption’ from Properties Window

  • Then replace ‘Command 3’ to ‘EXIT’ from Properties Window









    Step 4: –

    Temperature Converter Program in Visual Basic | Code Writing:-

    • Then double click on ‘CONVERT button’ or ‘Command 1 box’

    • Then input code to Command 1 code box.

    Code: – Dim F, C As String

        F = Val(Text1.Text)

                 C = (F – 32) * 5 / 9

        Text2.Text = C

    • Then double click on ‘CLEAR button’ or ‘Command 2 box’

    • Then input code to Command 2 code box.

    Code: – Text1.Text = “”

        Text2.Text = “”

    • Then double click on ‘EXIT button’ or ‘Command 3 box’

    • Then input code to Command 3 code box.

    Code: – End




    • Then close code box

    Step 5: –

    Project Save: –

    • Click on ‘Save project’ option from File menu

    • Then input any name to file name box and click on Save option from Save file as box

    • Then input any new name to file name box

    • Then click ‘Save’ option.

    Step 6: –

    Project Run: –

    • Press F5 key from keyboard or click on ‘Start’ from ‘Run menu’ to run the project

    • Then input any Fahrenheit number to text1 box

    • Then click on convert button

    • Then display Celsius number in text2 box

    • Then click on clear button for clearing the text 1 and text 2 box

    • Then click on Exit button to close the result window.



    So this is how you can use Temperature Converter Program in Visual Basic. So if you get this simple process ,you can easily easily make it.

    COMMENTS

    Name

    Computer,8,MS Office,2,Visual Basic,8,
    ltr
    item
    Computercoursestudy: Temperature Converter Program in Visual Basic
    Temperature Converter Program in Visual Basic
    https://1.bp.blogspot.com/-kSMaBNnZ76w/WqAN3Mzm_tI/AAAAAAAAAEg/8RQR-P_z93o6VkNN6dEcMHrokfcL68TjACLcBGAs/s1600/Temperature%2BConverter%2BProgram%2Bin%2BVisual%2BBasic.png
    https://1.bp.blogspot.com/-kSMaBNnZ76w/WqAN3Mzm_tI/AAAAAAAAAEg/8RQR-P_z93o6VkNN6dEcMHrokfcL68TjACLcBGAs/s72-c/Temperature%2BConverter%2BProgram%2Bin%2BVisual%2BBasic.png
    Computercoursestudy
    https://www.computercoursestudy.com/2017/02/temperature-converter-program-in-visual.html
    https://www.computercoursestudy.com/
    https://www.computercoursestudy.com/
    https://www.computercoursestudy.com/2017/02/temperature-converter-program-in-visual.html
    true
    3961810787506653407
    UTF-8
    Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS CONTENT IS PREMIUM Please share to unlock Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy