about visual basic
visual basic 6.0 v/s other version
visual basic programming
form in visual basic
objects in visual basic
important controls
visual basic statement
loop statement
conditional loop
do until loop
2. Visual basic is a tool that allows you to develop
windows(graphical user interface GUI) applications.
Visual basic is even-driven, meaning code remains idle until
called upon to respond to some event()button pressing, menu
selection,…)
Event processor
Event
procedures
Event?
Basic
Code
Basic
Code
Basic
Code
3. The original visual basic for DOS and visual basic for
windows were introduced in 1991.
Visual basic 3.0 was released in 1993.
Visual basic 4.0 released in late 1995(added 32 bits
application support).
Visual basic 5.0 released in late 1996. new environment,
support creation of active X controls, deleted 16 bit
application support.
And, now visual basic 6.0(faster complier active X control
object).
4. Visual basic is a programming languages that allows you to
program in a windows environment.
You create a “ from ” with several “object”.
You set the properties of object.
You write event handler to response to user’s input.
6. You create a form that is your graphical user interface.
Has places to input values.
Has button to click.
Has other user inter face elements, example: menu, scroll
bar..
7. Everything in visual basic is object, forms, button,…
Three elements of object:
Properties
Methods
Event handlers. Properties(si
ze, caption)
Methods(prin
t..)
Event
handler(com
mand1_click(
))
8. Text box's area where you enter text
Command button you click on them to do something
Picture box’s output your result.
text1
Push me now
9. In visual basic program(code there are four basic
parts)
◦ Declarations of variables and constants
◦ Inputting variables
◦ Operators for variables
◦ Outputting variables
10. Visual basic support statement to perform loops. The loops
statement cloud have different structure as follow:-
1)counter loop
2)conditional loop
Counter loop:-
loop apply programming statement for fixed number of times
using counter(
for...next)statement.
11. Conditional loop
loop repeat programming statements according to
specific condition. There are two type of conditional
loop:-
1)do while
2)do until
Do while loop:
In this loop the statement will be implement and
repeated when ever the condition satisfied.
12. Do until loop:
In this loop the statement will be implement and
repeated when ever the condition not satisfied, (i. e)
the loop will be stopped when the condition satisfied.
general format:-
Do until condition
statement
loop