Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> visual basic >> Snippet

02 Sample code


Sub Command1_click

'create a new VB program with a single window and a single button
'put the line below in the button click event .  The line is executed when the button is pressed
'MsgBox Is a built-In VB function which pops up a window with the specified text

MsgBox "Hello world!"

End Sub