VISUALBASIC_intro.ppt this file is required for BCA students.
1.
INTRODUCTION TO VISUALBASIC The main concept of VB is IDE (Integrated Development Environment). IDE means, in which platform , a user can create, run and debug. Overview of IDE: - When VB is loaded, a new dialogue box will open (named as: - “NEW PROJECT”). Here we can find 3 tabs: - New, Recent, Existing. All these 3 tabs are related to creation of VB projects. (pic – 1) New: - For creating a new project Existing: - For opening an existing project. Recent: - For opening an recently added project. In this dialogue box, the Standard EXE option is highlighted, by which a new IDE or form will be opened. The name of this IDE is: - “Project 1 – Microsoft Visual Basic [design]” (pic 2)
A standard exeproject contains the following components: - TOOL BOX. PROJECT 1 – (FORM 1). FORM 1 – DESIGNING ENVIRONMENT TITLE BAR. MENU BAR. TOOL BAR. PROPERTIES WINDOW. PROJECT WINDOW. FORM LAYOUT WINDOW.
4.
TITLE BAR TOOL BOX FORMLAYOUT WINDOW PROPERTIES WINDOW MENU BAR TOOL BAR VB INTEGRATEDDEVELOPMENT ENVIRONMENT PROJECT 1 (FORM 1) FORM 1 DESIGNING ENVIRONMENT
5.
PROJECT WINDOW: - Thewindow titled as “PROJECT – PROJECT1” is called the Project Explorer in Visual Basic. It contains the the several project files. Contd…
6.
The Project Windowcontains 3 tabs: - VIEW CODE :- OPEN THE CODE EDITOR. VIEW OBJECT :- OPEN THE FORMS. TOGGLE FOLDERS :- OPEN THE FORM MODULE. TOGGLE FOLDERS VIEW OBJECT VIEW CODE PROJECT NAME FORM FOLDER FORM MODULE
7.
TOOLBOX: - Theset of controls available in the toolbox can be customized for each project. Controls are prepackaged components for every project, which can be reused instead of writing the designing scripts. TOOL BOX COMPONENTS
8.
Pointer: - Itis not a control. Pointer is used to interact with the various controls in the toolbox. Label: - Displays an un editable text to user. Frame: - A control for grouping other control. Checkbox: - Provides the user with a toggle choice. Combo Box: - Provides the short list of items. Hscrollbar: - Horizontal scrollbar. Timer: - Performs a task at programmer specified intervals. Timer is not viewable by the user. Synopsis of ToolBox: - Contd…
9.
DirListBox: - Accessingthe various directories on a system. Shape: - For drawing various shapes like rectangle, square, circle or ellipse. Image: - Displays images. OLE: - (Object Linking and Embedding) – Interaction with other windows application. Picture Box: - Displays Images. Text Box: - Accept user input, also show the text. Command Button: - Represents a button. Click to initiate an action. Contd..
10.
Option Button: -It is used for grouping. List box: - Provides the list of Items. VScrollbar: - Vertical Scrollbar. DriveListBox: - Accessing the System Disk Drives. File List Box: - Accessing a particular file in a directory. Line: - Draw lines. Data: - Connect with database. Visual database manager.
11.
FORM LAY OUTWINDOW In VB, by this option, a user can visually set the form or Aligning the forms on screen.
12.
PROPERTIES WINDOW: - Properties window displaysthe various properties of a form or a control. Properties are the various types of name, caption, size, position, font etc.. Some properties are like width, height, caption are the same for the form and control.
13.
Name of a control Orform Type of Control or form Scrollbar Selected Property Selected Property Description
14.
Menu Bar :- This Menu Bar contains the active window components. File: - Contains options for open projects, close projects, save projects, print options. Edit: - undo, redo, cut, copy, paste. View: - Display IDE window and tool bars. Project: - Adding various features to form. Format: - Aligning and locking the form’s control. Debug: - Testing for checking the errors. Run: - Execute the whole project and stop the execution also. Query: - Database manipulation. Diagram: - Editing and viewing the whole database. Tools: - IDE tools & options for customizing the environments. Add-Ins: - Independent Software Vendor (ISV), extends the VB features. Windows: - Arrange and display windows. Help: - Help fro MSDN.
15.
Tool Bar: - ToolBar is comprised of icons that represent commands. Programmer can choose the various types of options from the tool bars. PROJECT ICONS MENU EDITOR FILE ICONS EDIT ICONS RUN ICONS VIEW ICONS PROJRCT EXPOLRER (PROJECT WINDOW) PROPERTIES WINDOW FORM LAYOUT WINDOW OBJECT BROWSER TOOLBOX DATABASE WINDOW VISUAL COMPONENET MANAGER