Showing posts with label Visual Basic 6. Show all posts
Showing posts with label Visual Basic 6. Show all posts

Visual Basic 6 Send Keys in Windows 7


How to avoid run time error '70' permission denied  in visual basic 6 in Windows 7 operating system.

Visual Basic 6 - Query In Datagrid with sort command in 1 line of code

This is the most common query program in visual basic using the adodc object and bind to datagrid object with sort order in any column of datagrid in a single line of code.

Visual Basic 6 - Simple Program "Hello World!"

A simple visual basic 6 project "Hello World!". it uses to command buttons, one for popup message and the other button for closing the applications.


Here' the code below

Private Sub Command1_Click()
      MsgBox "Hello World!", vbInformation, "My First Application in VB 6"
End Sub



Private Sub Command2_Click() 'This will terminate the program.
    Unload Me 'End
End Sub
'Unload - Close current window
'End - Terminate Application




Visual Basic - First Application Hello World

This tutorial is usually for the newbie in visual basic programming software, the project name is called "Hellow World". It uses a standard .exe and form with a little code inside the button object. Here's the code

Private Sub cmdPopup_Click()
      Msgbox "Hellow World!", vbCritical, "Message title is here!"
End Sub