Program to use Button in VB.NET

‘Hello World on Button Click

Public Class programmingfrompros
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
MsgBox(“Hello World !!”)
End Sub
End Class

Advertisements

Hello World Program in VB.NET

‘Hello World on Form Load

Public Class programmingfrompros

Private Sub programmingfrompros_Load(sender As Object, e As EventArgs) Handles MyBase.Load

MsgBox(“Hello World !!”)
End Sub

End Class