Free Web Hosting Provider - Web Hosting - E-commerce - High Speed Internet - Free Web Page
Search the Web

This page contains Visual Basic tutorials , send comments or questions to Shahram@math.com

First notes :

This is the first article and before begining a tutorial , I want to say basic and main things and begin the tutorial next time .

When you run Visual Basic , a window opens and want you to decide what type of project you want to begin . Now you must select the "Standard EXE " . It means that you want to design an executable program . Then you will enter VBasic environment . Now you can see the toolbar in the left side and some other windows on the right . VB itself creates a form and now you can add controls to the form . everything that you can add to form , is called a control , eg. a CommandButton control is a simple button . Each control has some events , eg. when you click a command button the "Click" event has occured to the button and if you specified any commands in that event , it will run then . I will describe controls later , but now about windows on the right :

first is the "project" window which shows the open projects and each project's forms , modules and ... . There are three button on its top , first from left shows the "code" view , where you can write the codes . Second shows the "object" view which is the default open view when you run VB (the window in which you can see your form and controls ) . Third show all forms and ... of the project in one groupe or categorized groupes , this is a toggle mode button .

Next windows is "properties" window which shows the properties for each control or form you select in the "object" view . you can change the properties in this window or write codes to change them .

The window in the bottom is "Form layout" window which shows a little monitor and you form in it . It show the default place of the window when the program runs . You can move the form here and change the startup place of the form . Now it is good for the first article . Work with controls and learn they names and properties . next time I will expalin "code" window and controls .

Controls and their properties and events :

The first and most common control is Form which is automatically created when you start a project . After starting a project you can also add more forms , just right click in the Projet window and select add then select a type of form . You can add forms from Project menu also . Now I want to explain its properties . Some of the properties are common in other controls and some are just for a form . First the common properties:

1.Name : is the name whic the control is called in the program , use this name while writing the codes. There is a common way to name the controls which helps others to understand our program better , eg. name of a form begins with "frm" like "frmWelcome" .

2.Appearance : which has two options : 3D and Flat .This is related to the appearance of the form or other controls and does not need more explanation .... Now I think its enough , read the tutorials and you will learn much then , just try to read them from first to last because some of important things are told in first tutorials .