• Sunday, March 2, 2014

    [VB6] Making a simple Hello World Program with Command Button

    Let's Start

    Step1: Open Visual Basic 6.0

    Step2: Choose "Standard Exe" and click Open

    Step3: Choose Command Button from ToolBar. And then click on your form.


    Step 4: Double Click on Command Button

    Step5: You see the code window which have already some code written in it.
    This code is automatically written by the vb when you double click on the Command Button.

    Step6: Now write this:
    MsgBox "Hello World!"

    Your code look like this:

    Private Sub Command1_Click()
    MsgBox "Hello World"
    End Sub

    Step7: Click on the start button [play icon] to run your first project.

    Step8: Click on the command button. You should see a message box..!!

    Syed Masoom Rizvi

    Author & Editor

    Hi, This is Syed Masoom Rizvi, who is continue exploring the world of programming ,programming and programming... :)

    0 comments:

    Post a Comment