05-06-2012, 01:52 PM
Visual Basic Programming
Visual Basic Programming.pdf (Size: 353.17 KB / Downloads: 0)
What Visual Basic is not
Visual Basic is not, a powerful
programming language that enables you to
do anything you want.
Visual Basic is not, elegant or fast.
Visual Basic is not, a replacement for C.
Visual Basic is not, anything like any other
programming language you have ever used.
When You Program in VB:
You draw pictures of your user interface.
You draw buttons, text boxes, and other
user-interface items.
You add little snippets of code to handle the
user interaction.
You add initialization code, usually as the
last step.
If you like, you can code more complex
functions. (But many do not.)
More Complex Controls
Complex Controls Have:
– Action Properties to Execute Commands
– Active Properties that Cause Actions When
Values Are Assigned to Them
– Many Types of Events for Program Interaction
Examples:
– Spreadsheets
– Word Processors
– Web Browsers
Alternative Methods
Some Versions of VB do not allow DLL
function definitions in the (general) section
of a form.
To Get Around this Problem, Create a new
Module (File Menu)
Add the declarations to the (general) section
of the module
You can add your own VB functions to the
(general) section of a form or a module.