Professional Documents
Culture Documents
Chapter4 Introduction To Visual Basic 6 Program Language
Chapter4 Introduction To Visual Basic 6 Program Language
Visual Basic was derived from BASIC and enables the rapid application development
(RAD) of graphical user interface (GUI) applications, access to databases using Data
Access Objects, Remote Data Objects, or ActiveX Data Objects, and creation of
ActiveX controls and objects.
As with variables, one can restrict the scope of procedures, and one do that
with the Private, Public, Friend and Static keywords. The Private and Public
keywords are the main keywords here; using them, you can specify if a subroutine or
function is private to the module or form in which it is declared or public (that is,
global) to all forms and modules. You use these keywords before the sub or function
keyword.
4.4.1
4.4.2
4.4.3
4.4.7
4.4.4
4.4.6
4.4.8
4.4.5
The menu bar presents the Visual Basic menus. Here is a list of those menus
and what they do.
4.4.1.1 File - File handling and printing; also used to make EXE files.
4.4.1.2 Edit – Standard editing functions, undo, searches.
4.4.1.3 View – Displays or hides windows and toolbars
4.4.1.4 Project – Sets project properties, adds/removes forms and modules, and
adds/removes references and components.
4.4.1.5 Format – Aligns or sixes controls.
4.4.1.6 Debug – Starts/stops debugging and stepping through programs.
4.4.1.7 Run – Starts a program, or compiles and starts it.
4.4.1.8 Tools – Adds procedures, starts the Menu Editor, sets IDE options.
4.4.1.9 Add-ins – Add-in manager, lists add-in like Application Wizard and API
viewer
4.4.1.10 Window – Arranges or selects open windows.
4.4.1.11 Help – Handles Help and the About box
Properties Data
Open project Paste Start window
Add form Object view
Cut Undo
module and so on End browser
Form designers are really just windows in which a particular form appears. One
can place controls into a form simply by drawing them after clicking the
corresponding control’s tool in the toolbox. Figure no 4.9 shows the form designers.