First you need to create a new project by select File -> New project

Enter your project name, then click OK button to complete

Now, we'll add some controls to your main form, The main form (form1) will begin when your program start.

now, press run button (Debug) or F5

now, this is a sample code in vb.net window forms:

Public Class Form1

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        MsgBox("Hello, world!")
    End Sub

'this is for Hello, world button

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Me.Close()
    End Sub

'this is for exit button

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        MsgBox(TextBox1.Text)
    End Sub

'this is for custom button

End Class

You'll See:

VB.NET Code:

Enjoy, by Aziz Lazreg.