Saturday, May 10, 2014

Simple Hello Program in Visual Basic

Simple Hello Program in Visual Basic


  • First create a new project.
  • Now Create a New button from the toolbox and double click on the button.
  • Now replace all the code with below code.
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
End Class

Note:

In the above code 'Msgbox' is the main keyword which is used to display the message and remaining code are default codes.


For more tutorial keep visiting this site.

No comments:

Post a Comment