SlideShare a Scribd company logo
MS Visual Basic:
    An overview
MS Visual Basic
O Is object-oriented programming
  development system for creating Windows
  Application
O It is an event driven
Working with Visual Basic
Parts of the VB Screen
O Blank form – where you can make your
  own application’s interface
O Project Explorer Window - which displays
  the files that are created in your
  application
O Properties Window – displays the
  properties of controls and objects that are
  created in your application
O Toolbox – contains all control needed for
  developing a Visual Basic Application
Toolbox
Form Design Window
• This is where the user interface is
   actually designing
Code Editor Window
• Allow the user to enter or type the
   programming statements for VB program
Project Explorer Window
Properties Window
Form Layout
• Allows to specify the screen location of the forms
  within a project
Steps in building the VB
         Application

O Design the interface
O Set properties of the
  controls (Objects)
O Write the event procedures
Control Properties
O Sets the properties for the control to
 determine its appearance and how
 it will work with the event procedure.
In the properties window
        you can do the ff:
O Rename a caption
O Alter the appearance of the
    form
O   Change foreground and
    background
O   Change font type and size
O   Enable or disable minimize
    and maximize buttons
O   Give special effects
Important points about setting
      up your control…
 O Set  the Caption Property of a
   control clearly so that a user knows
   what to do with that command.
 O Use a meaningful name for the
   Name Property because it is easier
   to write and read the event
   procedure and easier to debug or
   modify the programs later.
The Toolbox
O It contains all the control needed for
 developing      a     Visual     Basic
 Application
Text Box




• is the standard control for accepting input
  from the user as well as to display the output
In this example the text boxes
are used for input and the other
one is to display the sum of two
numbers that
are entered into the two text
boxes.
Label
O it is not only used to provide
  instructions and guides to the
  users, it can also be used to display
  outputs. One of its most important
  properties is Caption. Using the
  syntax label.Caption, it can display
  text and numeric data .
Command Button
O one of the most important controls as it is
  used to execute commands. The most
  common event associated with the
  command button is the Click event, and
  the syntax for the procedure is:

      Private Sub Command1_Click ()
      Statements
      End Sub
Activity 1
Create and design your own user
interface in finding the Area of a
Rectangle.

Include: Textbox,    Label    and
Command button

More Related Content

What's hot

Visusual basic
Visusual basicVisusual basic
Visusual basic
Mandavi Classes
 
Visual basic
Visual basicVisual basic
Visual basic
umesh patil
 
Vb unit t 1.1
Vb unit t 1.1Vb unit t 1.1
Vb unit t 1.1
Gayathri Cit
 
Visual Basic menu
Visual Basic menuVisual Basic menu
Visual Basic menu
kuldeep94
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
Ranjuma Shubhangi
 
Buttons In .net Visual Basic
Buttons In .net Visual BasicButtons In .net Visual Basic
Buttons In .net Visual Basic
manish maurya
 
Vb tutorial
Vb tutorialVb tutorial
Vb tutorial
Saikarthik103212
 
Common dialog control
Common dialog controlCommon dialog control
Common dialog control
Soumya Vijoy
 
Working with visual basic applications
Working with visual basic applicationsWorking with visual basic applications
Working with visual basic applications
Sara Corpuz
 
Class viii ch-7 visual basic 2008
Class  viii ch-7 visual basic 2008Class  viii ch-7 visual basic 2008
Class viii ch-7 visual basic 2008
jessandy
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
Roger Argarin
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
Ahllen Javier
 
Vs c# lecture1
Vs c# lecture1Vs c# lecture1
Vs c# lecture1
Saman M. Almufti
 
Computer homework
Computer homeworkComputer homework
Computer homework
adarsh-kaul
 
Visual basic
Visual basicVisual basic
Visual basic
Dharmik
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
simran153
 
History of Visual Basic Programming
History of Visual Basic ProgrammingHistory of Visual Basic Programming
History of Visual Basic Programming
Janice Perez-Cordovilla
 
Toolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vbToolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vb
Amandeep Kaur
 
Vbasic
VbasicVbasic
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
Ali Mattash
 

What's hot (20)

Visusual basic
Visusual basicVisusual basic
Visusual basic
 
Visual basic
Visual basicVisual basic
Visual basic
 
Vb unit t 1.1
Vb unit t 1.1Vb unit t 1.1
Vb unit t 1.1
 
Visual Basic menu
Visual Basic menuVisual Basic menu
Visual Basic menu
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
 
Buttons In .net Visual Basic
Buttons In .net Visual BasicButtons In .net Visual Basic
Buttons In .net Visual Basic
 
Vb tutorial
Vb tutorialVb tutorial
Vb tutorial
 
Common dialog control
Common dialog controlCommon dialog control
Common dialog control
 
Working with visual basic applications
Working with visual basic applicationsWorking with visual basic applications
Working with visual basic applications
 
Class viii ch-7 visual basic 2008
Class  viii ch-7 visual basic 2008Class  viii ch-7 visual basic 2008
Class viii ch-7 visual basic 2008
 
Introduction to visual basic programming
Introduction to visual basic programmingIntroduction to visual basic programming
Introduction to visual basic programming
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Vs c# lecture1
Vs c# lecture1Vs c# lecture1
Vs c# lecture1
 
Computer homework
Computer homeworkComputer homework
Computer homework
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
 
History of Visual Basic Programming
History of Visual Basic ProgrammingHistory of Visual Basic Programming
History of Visual Basic Programming
 
Toolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vbToolbar, statusbar, coolbar in vb
Toolbar, statusbar, coolbar in vb
 
Vbasic
VbasicVbasic
Vbasic
 
Visual C# 2010
Visual C# 2010Visual C# 2010
Visual C# 2010
 

Viewers also liked

C lecture 3 control statements slideshare
C lecture 3 control statements slideshareC lecture 3 control statements slideshare
C lecture 3 control statements slideshare
Gagan Deep
 
Steps to migrate vb6 application to vb dotnet
Steps to migrate vb6 application to vb dotnetSteps to migrate vb6 application to vb dotnet
Steps to migrate vb6 application to vb dotnet
Debabrata Adhya
 
.Net branching and flow control
.Net branching and flow control.Net branching and flow control
.Net branching and flow control
LearnNowOnline
 
VB Function and procedure
VB Function and procedureVB Function and procedure
VB Function and procedure
pragya ratan
 
Vb decision making statements
Vb decision making statementsVb decision making statements
Vb decision making statements
pragya ratan
 
Control Structures in Visual Basic
Control Structures in  Visual BasicControl Structures in  Visual Basic
Control Structures in Visual Basic
Tushar Jain
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
Salim M
 
Decision statements in vb.net
Decision statements in vb.netDecision statements in vb.net
Decision statements in vb.net
ilakkiya
 
Looping statement in vb.net
Looping statement in vb.netLooping statement in vb.net
Looping statement in vb.net
ilakkiya
 
Looping statements in Java
Looping statements in JavaLooping statements in Java
Looping statements in Java
Jin Castor
 
Control statements
Control statementsControl statements
Control statements
Kanwalpreet Kaur
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
Mandy Suzanne
 

Viewers also liked (12)

C lecture 3 control statements slideshare
C lecture 3 control statements slideshareC lecture 3 control statements slideshare
C lecture 3 control statements slideshare
 
Steps to migrate vb6 application to vb dotnet
Steps to migrate vb6 application to vb dotnetSteps to migrate vb6 application to vb dotnet
Steps to migrate vb6 application to vb dotnet
 
.Net branching and flow control
.Net branching and flow control.Net branching and flow control
.Net branching and flow control
 
VB Function and procedure
VB Function and procedureVB Function and procedure
VB Function and procedure
 
Vb decision making statements
Vb decision making statementsVb decision making statements
Vb decision making statements
 
Control Structures in Visual Basic
Control Structures in  Visual BasicControl Structures in  Visual Basic
Control Structures in Visual Basic
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
 
Decision statements in vb.net
Decision statements in vb.netDecision statements in vb.net
Decision statements in vb.net
 
Looping statement in vb.net
Looping statement in vb.netLooping statement in vb.net
Looping statement in vb.net
 
Looping statements in Java
Looping statements in JavaLooping statements in Java
Looping statements in Java
 
Control statements
Control statementsControl statements
Control statements
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 

Similar to Introduction to Visual Basic (Week 2)

hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
EliasPetros
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
DivyaR219113
 
VISUAL PROGRAMMING
VISUAL PROGRAMMINGVISUAL PROGRAMMING
VISUAL PROGRAMMING
SarithaDhanapal
 
Visual basic
Visual basicVisual basic
Visual basic
KavithaAlagumalai
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.ppt
BhuvanaR13
 
Visual Basic.pptx
Visual Basic.pptxVisual Basic.pptx
Visual Basic.pptx
KavithaAlagumalai
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
Dr. C.V. Suresh Babu
 
Vb 6ch123
Vb 6ch123Vb 6ch123
Vb 6ch123
Fahim Khan
 
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
melody77776
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
AnasYunusa
 
Programming basics
Programming basicsProgramming basics
Programming basics
Senri DLN
 
VB PPT by ADI part-1.pdf
VB PPT by ADI part-1.pdfVB PPT by ADI part-1.pdf
VB PPT by ADI part-1.pdf
Prof. Dr. K. Adisesha
 
LECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptxLECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptx
AOmaAli
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
Terry Yoast
 
Introduction to visual basic 6 (1)
Introduction to visual basic 6 (1)Introduction to visual basic 6 (1)
Introduction to visual basic 6 (1)
Mark Vincent Cantero
 
Ch01
Ch01Ch01
vb.pptx
vb.pptxvb.pptx
vb.pptx
CherryLim21
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
LimEchYrr
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
LimEchYrr
 
Vbtutorial
VbtutorialVbtutorial
Vbtutorial
dhi her
 

Similar to Introduction to Visual Basic (Week 2) (20)

hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptxhjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
hjksjdhksjhcksjhckjhskdjhcskjhckjdppt.pptx
 
Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0Introduction to Visual Basic 6.0
Introduction to Visual Basic 6.0
 
VISUAL PROGRAMMING
VISUAL PROGRAMMINGVISUAL PROGRAMMING
VISUAL PROGRAMMING
 
Visual basic
Visual basicVisual basic
Visual basic
 
VB6_INTRODUCTION.ppt
VB6_INTRODUCTION.pptVB6_INTRODUCTION.ppt
VB6_INTRODUCTION.ppt
 
Visual Basic.pptx
Visual Basic.pptxVisual Basic.pptx
Visual Basic.pptx
 
Visual studio.net
Visual studio.netVisual studio.net
Visual studio.net
 
Vb 6ch123
Vb 6ch123Vb 6ch123
Vb 6ch123
 
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
 
COM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptxCOM 211 PRESENTATION.pptx
COM 211 PRESENTATION.pptx
 
Programming basics
Programming basicsProgramming basics
Programming basics
 
VB PPT by ADI part-1.pdf
VB PPT by ADI part-1.pdfVB PPT by ADI part-1.pdf
VB PPT by ADI part-1.pdf
 
LECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptxLECTURE 12 WINDOWS FORMS PART 2.pptx
LECTURE 12 WINDOWS FORMS PART 2.pptx
 
Chapter 01
Chapter 01Chapter 01
Chapter 01
 
Introduction to visual basic 6 (1)
Introduction to visual basic 6 (1)Introduction to visual basic 6 (1)
Introduction to visual basic 6 (1)
 
Ch01
Ch01Ch01
Ch01
 
vb.pptx
vb.pptxvb.pptx
vb.pptx
 
vb-160518151614.pdf
vb-160518151614.pdfvb-160518151614.pdf
vb-160518151614.pdf
 
vb-160518151614.pptx
vb-160518151614.pptxvb-160518151614.pptx
vb-160518151614.pptx
 
Vbtutorial
VbtutorialVbtutorial
Vbtutorial
 

Introduction to Visual Basic (Week 2)

  • 1. MS Visual Basic: An overview
  • 2. MS Visual Basic O Is object-oriented programming development system for creating Windows Application O It is an event driven
  • 4. Parts of the VB Screen O Blank form – where you can make your own application’s interface O Project Explorer Window - which displays the files that are created in your application O Properties Window – displays the properties of controls and objects that are created in your application O Toolbox – contains all control needed for developing a Visual Basic Application
  • 6. Form Design Window • This is where the user interface is actually designing
  • 7. Code Editor Window • Allow the user to enter or type the programming statements for VB program
  • 10. Form Layout • Allows to specify the screen location of the forms within a project
  • 11. Steps in building the VB Application O Design the interface O Set properties of the controls (Objects) O Write the event procedures
  • 12. Control Properties O Sets the properties for the control to determine its appearance and how it will work with the event procedure.
  • 13. In the properties window you can do the ff: O Rename a caption O Alter the appearance of the form O Change foreground and background O Change font type and size O Enable or disable minimize and maximize buttons O Give special effects
  • 14. Important points about setting up your control… O Set the Caption Property of a control clearly so that a user knows what to do with that command. O Use a meaningful name for the Name Property because it is easier to write and read the event procedure and easier to debug or modify the programs later.
  • 15. The Toolbox O It contains all the control needed for developing a Visual Basic Application
  • 16.
  • 17. Text Box • is the standard control for accepting input from the user as well as to display the output
  • 18. In this example the text boxes are used for input and the other one is to display the sum of two numbers that are entered into the two text boxes.
  • 19. Label O it is not only used to provide instructions and guides to the users, it can also be used to display outputs. One of its most important properties is Caption. Using the syntax label.Caption, it can display text and numeric data .
  • 20. Command Button O one of the most important controls as it is used to execute commands. The most common event associated with the command button is the Click event, and the syntax for the procedure is: Private Sub Command1_Click () Statements End Sub
  • 21. Activity 1 Create and design your own user interface in finding the Area of a Rectangle. Include: Textbox, Label and Command button