0% found this document useful (0 votes)
98 views

Chapter1 - Introduction To Visual Basic 2010

The document provides an introduction to Visual Basic 2010, outlining the objectives of learning the programming language which include understanding the program development cycle and Visual Basic environment. It describes the key aspects of Visual Basic 2010 like the integrated development environment, the toolbox and properties window for designing forms, and the basic steps for creating a simple VB program. The chapter concludes with an activity asking the reader to create a project with a form containing specific property settings.

Uploaded by

Mk Eds
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views

Chapter1 - Introduction To Visual Basic 2010

The document provides an introduction to Visual Basic 2010, outlining the objectives of learning the programming language which include understanding the program development cycle and Visual Basic environment. It describes the key aspects of Visual Basic 2010 like the integrated development environment, the toolbox and properties window for designing forms, and the basic steps for creating a simple VB program. The chapter concludes with an activity asking the reader to create a project with a form containing specific property settings.

Uploaded by

Mk Eds
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Chapter1 Introduction to

Visual Basic 2010


Objectives
To define what programming language is
To enumerate the program development cycle
To define what Visual Basic is
To be familiar with the Microsoft Visual Basic 2010
environment
To enumerate the steps in designing VB application
To be able to identify and use the different controls
in designing forms
To be able to change the properties of controls
To be able to create a simple program using VB
2010
What is programming language?

A programming language is a language that


uses specially defined words, grammar, and
punctuation that a computer understands.
Some of the more popular programming
languages are VisualBasic, C++, and Java.
Program Development

Cycle
Analyze: Define the Problem
Design: Plan the Solution to the Problem
Choose the Interface: Select the objects
(text boxes, command buttons, etc.)
Code: Translate the algorithm into a
programming language
Test and Debug: Locate and remove any
errors in the program
Complete the documentation
History of Visual Basic
BASIC stands for Beginners' All-
purpose Symbolic Instruction
Code

A high level programming language


developed by John Kemeny and
Thomas Kurtz in mid 1960s
Introduction to VB 2010
Visual Basic 2010 is the latest version of
Visual Basic launched by Microsoft in 2010
It is GUI based and especially developed
for MS window
Visual Basic 2010 Express Edition is
available for free download from the
Microsoft site as shown below:
http://www.microsoft.com/visualstudio/en-
us/products/2010-editions/express
VB 2010 Integrated Development
Environment

The IDE consists of a few panes, namely:


The Recent Projects Pane- it shows the list of projects that
you have created recently.
The Get Started Pane- It provides some helpful tips so that
you can quickly develop your new application.
The Latest News pane- It provides latest online news about
Visual Basic 2010 Express. It will announce new releases and
updates.
The Designer Interface

The Designer consists of the Menu bar, the Toolbars, an empty


Form, the Solution Explorer and the Properties Window.
Form- the first place to build your application. It is the place to
design the user interface.
Solution Explorer - displays a list of projects, files and other
components that you can easily browse and access. For example, it
displays My Project and Form1.vb in the figure above
Properties Window- This is the place to set the properties of the
objects in your application. The objects include the default form and
the controls you place in the form.
Steps in Designing a VB
application

Create the interface


Generate the position and size of objects
Set properties
Set relevant properties for the objects
Write the code
Write the code that executes when the
event occur
The Toolbox Window
The Toolbox is accessed
through the View Toolbox
menu option, by clicking the
Toolbox icon on the Standard
menu bar, or by pressing
Ctrl+Alt+X.

The Toolbox contains a Node-


type view of the various
controls and components that
can be placed onto your form.
Controls such as text boxes,
buttons, radio buttons, and Figure 2.1
combo boxes can be selected
and then drawn onto your
The Properties Window

The Properties window allows


you to set a controls
properties easily. Properties
are a particular objects set of
internal data; they usually
describe appearance or
behavior.

The properties can also be


grouped together in
categoriesAccessibility,
Appearance, Behavior, Data,
Design, Focus, Layout, Misc,
and Window Style.
Time to Explore VB!

Starting the Visual Basic 2010 Express

Saving and Naming the Project

Closing and Opening the project

Changing the properties of a form

Adding controls to a form

Changing properties of a form


Creating a Simple
Program
In this example, we will create a
simple program that will display a
welcome message when you load the
form. First, change the properties of
the form as follows:
Activity
Saving and Naming the Project
Adding controls to the form
Setting properties to the controls
Machine Problem
Create a project named it as
FirstProject, then provide the
following properties in a form
Property Value
Name WelcomeMsgFrm
BackColor Pink(background of the form)
Font Microsoft Sans Serif Size 10 and Bold
ForeColor White (The color of text on title bar)
Text Visual Basic 2010 (Text on title bar)

You might also like