Visual Basic Integrated Development Environment Topic Structure of

Visual Basic Integrated Development Environment

Topic & Structure of the lesson IDE • Introduction • Integrated Development Environment • Tool Box • Properties Window • Form Window • Saving a Project Visual Basic 2

Learning Outcomes IDE At the end of this lesson you should be able to : 1. Know the Integrated Development Environment 2. Use the Project window 3. Use the Visual Basic Toolbox 4. Use Form Layout Window 5. Use the Properties Window 6. Save a Visual Basic Project Visual Basic 3

Keywords IDE If you have mastered this topic, you should be able to use the following terms correctly in your assignments and exams: n n n n Visual Basic IDE Toolbox Text Box Label Command Button Form Window Properties 4

Integrated Development Environment IDE VB IDE is used to Create, Run and Debug Visual Basic programs in one application without the need to open additional programs. Visual Basic 5

Starting Visual Basic 6. 0 IDE • Select Microsoft Visual Studio • Select Visual Basic 6. 0 • Click Standard. EXE to start programming Visual Basic 6

The Project Window IDE Viewer buttons that can show the interface elements or the programming. n Visual Basic n List of Forms. n Other files - modules 7

Visual Basic Toolbox IDE Selection arrow Text Label Frame Check Box Combo Box Horizontal Scroll Bar Timer Directory List Box Shape Image Visual Basic Picture Box Text Input Box Command Button Radio Button List Box Vertical Scroll Bar Drive List Box File List Box Line Data Control 8

Group Exercise Match as many controls on the toolbar : IDE a)Command Button b)Option Button c)Label d)Line e)Frame f)Image g)Picture Box h)VScroll. Bar i)Text Box j)Timer k)Check Box Visual Basic l)Radio Buttons 9

Visual Basic Toolbox Description. IDE Displays Image. Displays uneditable text to the Accepting the user input and can display text also. Frame A control for grouping other control. Command. Butto Represent a button. n Box Check Provide the user with a toggle choice (checked or unchecked). Option. Button Option buttons are used in a groups where only one can be true. Control Picture. Box Label Text. Box Visual Basic 10

Visual Basic Toolbox Control List. Box Combo. Box HScroll. Bar VScroll. Bar Timer Drive. List. Box Dir. List. Box Visual Basic Description. IDE Provides a long list of items. Provides a short list of items. A horizontal scrollbar. A vertical scrollbar. A control that performs a task at programmer-specified intervals. A Timer is not visible to the user. A control for accessing the system disk drives (C : A : etc. ). A control for accessing directories. 11

Exercise IDE Describe the purpose of the following controls : 1. Text Box 2. Label 3. Command Button 4. Check Box 5. Option Buttons 6. Frame 7. Picture Box Visual Basic 12

Form Layout IDE Form layout windows specifies a form’s position on a screen at runtime. The Form Layout window consists of an image representing the screen and the form’s relative position on the screen. Screen Form Visual Basic 13

Properties Window IDE • The properties window displays the properties for a form or control. Properties are attributes such as size, position, color, etc. Visual Basic 14

Properties Window IDE Name Of Control or Form Type Of Control or Form Scroll Bar Selected Property Description Visual Basic 15

Exercise IDE • List FIVE other properties that you can think of for an object. • Why are they needed ? Visual Basic 16

Menu Bar and Tool Bar IDE The menu bar Size and position info Run and Debug Buttons File and Project Tools Visual Basic 17

Menu Bar and Tool Bar IDE Menu File Description Used for opening, closing, and printing projects, etc. Edit Cut, paste, find, undo, delete, etc. View Displaying IDE windows and tool bars. Project Adding features e. g forms to the project. Format Aligning and locking a Form’s control. Debug Options for debugging. Run Executing a program, stopping a program, etc. Visual Basic 18

Displaying a Line of Text IDE Visual Basic 19

Save a Form and Project IDE • Ensure that the Form is saved first before saving the project. Rules • Click File Menu • Save Form 1 as …. then • Save Project as ……. . Visual Basic 20

Group Exercise IDE True/False 1. The toolbar contains the control items 2. The Project window is also called the Project Explorer 3. The tool bar provides an easy way to run certain menu commands 4. VB is an integrated development environment 5. Caption is used to display a name for an object 6. A text box can only be used to display items 7. A command button is used to execute a program 8. A form is used to place components for design purpose 9. VB is used to create web or internet applications Visual Basic 21

Home Work IDE • Design an interface and place your Name, Intake and Institute Name on three separate labels. • Place three text boxes on the form • Place a command button to display your name, intake and institute’s name on the text boxes. • Place Apiit Logo on the form using a Picture Box. • Save your VB Project in A: VBexercise 1. vbp Visual Basic 22
- Slides: 22