130 likes | 291 Vues
Introduction to Visual Basic. Chulantha Kulasekere. VB IDE. Explanation of IDE. Project: A collection of files for easy management. Standard.EXE: Should be used if the file is an executable. It will open a blank form to write your application. VB Environment. Creating Your First Program.
E N D
Introduction to Visual Basic Chulantha Kulasekere
Explanation of IDE • Project: A collection of files for easy management. • Standard.EXE: Should be used if the file is an executable. • It will open a blank form to write your application.
Creating Your First Program • Insert a LABEL and a COMMAND button on the form • Double click on the FORM to open the CODE Window.
Procedure box Object box Creating Your First Program • The drop down menues will show the items you inserted in the form.
Writing a VB Application • There are three basic steps to write a program. Step 1 : Design the interface Step 2 : Set Properties of the controls (Objects) Step 3 : Write the events' procedures
Writing the Application • Insert three labels and change the names. Use the properties window to adjust the height and width. • Insert three text boxes and given names as well. • Insert a command button and also do the same. Change its name and caption to OK in the properties window. • Change location to make GUI attractive.