Visual Basic Programming: University of Gondar Faculty of Informatics Department of Information Science
Visual Basic Programming: University of Gondar Faculty of Informatics Department of Information Science
Faculty of Informatics
Department of Information Science
7/13/22
of instructions to enable By:
a Melsew
computer
Belachew
to do a certain task. 5
Cont’d …
• Visual Basic falls into a category of programming referred
to as Event-driven Programming.
• Event-driven programs respond to events from the
computer, such as the mouse button being pressed.
• This approach to programming drastically reduces the
amount of code required to develop a Windows
application.
• Visual Basic is event-driven, meaning code remains idle
until called upon to respond to some event (button
pressing, menu selection ...).
• Visual Basic is governed by an event processor.
• Visual Basic is a tool that allows you to develop
Windows (Graphic User Interface - GUI) applications.
The applications have a familiar appearance to the user.
7/13/22 By: Melsew Belachew 6
History of BASIC
Visual Basic 1.0
MS-BASIC 2.0
Visual Basic 6.0
Visual-BASIC 8.0
Visual Basic. Net
Visual-studio 10
Visual studio 12
Visual studio 13
Visual studio 15
Visual studio 17
Visual studio 17, 15.9
7/13/22 Visual studio 19 By: Melsew Belachew 7
Cont’d …
Visual Basic has gone through many phases of development
since the days of BASIC that was built for DOS.
Visual Basic was initially a functional or procedural
programming language until the popular Visual Basic 6.
Then, Microsoft transformed Visual Basic into a more powerful
object oriented programming language by launching Visual
Basic. Net, Visual Basic 2005, Visual Basic 2008 and the latest
Visual Basic 2010.
VB 2010 is the latest version of Visual Basic launched by
Microsoft in 2010. It is almost similar to Visual Basic 2008 but it
has added many new features.
Microsoft VB 2010 is an important upgrade and enhancement of
the popular Visual Basic programming language and compiler, a
technology that enjoys an installed base of millions of
programmers worldwide.
7/13/22 By: Melsew Belachew 8
Cont’d …
Visual Basic 2010 is not a stand-alone product but a key
component of Microsoft Visual Studio 2010, a comprehensive
development system
That allows you to create powerful applications for Windows,
the Web, handheld devices, and a host of other environments.
Microsoft has added many new features particularly those
features for building mobile applications in visual basic 2015
which is a full-fledged Object-Oriented Programming(OOP)
Language implemented in the .NET Framework.
Visual Basic 2015 is bundled together with other Microsoft
Programming languages C++, C#, JavaScript, Python and more
in an IDE called Visual Studio Community 2015.
Visual Basic 2015 is an event-driven programming language,
which means that the code is executed in response to events.
7/13/22 By: Melsew Belachew 9
Features of Visual Basic
GuI Interface: - VB is a Graphical User Interface language. This means that
a VB program will always show something on the screen that the user can
interact with to get a job done.
Modularization: - It is considered good programming practice to
modularize your programs. Small modules where it is clearly indicated
what comes into the module and what goes out makes a program easy to
understand.
Object Oriented: - Object Oriented Programming is a concept where the
programmer thinks of the program in "objects" that interact with each
other. Visual Basic forces this good programming practice.
Debugging: - Visual Basic offers two different options for code
debugging:- Debugging Managed Code & Runtime Debugger. The
Debugging Managed Code individually debugs C and C++ applications
and Visual Basic Windows applications. The Runtime Debugger helps to
find and fix bugs in programs at runtime.
Data Access Feature: - By using data access features, we can create
databases, scalable server-side components for most databases, including
Microsoft SQL Server and other enterprise-level database.
Macros IDE: - The Macros integrated development environment is similar
7/13/22
in design and function to the Visual Studio IDE. The Macros IDE includes a
By: Melsew Belachew 10
code editor, tool windows, the properties windows and editors
Cont’d …
Some Features of Visual Basic
⇒ Full set of objects - you 'draw' the application
⇒ Lots of icons and pictures for your use
⇒ Response to mouse and keyboard actions
⇒ Clipboard and printer access
⇒ Full array of mathematical, string handling and graphics
functions
⇒ can handle fixed and dynamic variable and control arrays
⇒ Sequential and random access file support
⇒ Useful debugger and error-handling facilities
⇒ Powerful database access tools
⇒ ActiveX support
⇒ Package & Deployment Wizard makes distributing your
7/13/22
applications Visual Basic simple
By: Melsew Belachew 11
Cont’d …
Steps in Programming
Problem Identification
Solution Design
Coding
Compiling with compiler or running with interpreter
Debugging
Testing
Menus - a list of options from which the user can choose what
they require