Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
11/06/13

Mr. Roger C. Argarin

1



Introduction – Learning objectives of the class
Introduction to Visual Basic
Brief History of Visual Basic
 Basic Co...







Visual program design and development
Fundamentals of Object Oriented Programming
(OOP)
Event driven programmi...




Text book:
 Introduction to Visual Basic 2008 Programming
Copernicus P. Pepito
References:






11/06/13

Onl...




The Visual Basic programming language was
developed by Alan Cooper, an American
scientist in the late 1980’
This pro...
The Structure and Operation of a Computer
 Computer system: hardware and software
 Processor (registers, primitive opera...
Computer System (PC)

Hardware

Software

Data types,
Sequence and
Data Control,
Storage Management,
Operating Environment...






Input Unit (keyboard, mouse, scanner, Internet
through TCP/IP)
Central Processing Unit (CPU)
Output Unit
Memory ...






Objects are essentially reusable software
components that model items in the real world,
such as windows cars, ve...


Object ==> Noun




Property ==> Adjective




Move a Form

Event ==> Occurs when the user takes an
action




Co...


Used to reference object's properties and
events in code


Object dot Property
 Form.Text, TextBox.Text



Object do...




Class = automobile
Properties = make, model, color, year
Object = each individual car





Object is also an Ins...


Learning Visual Basic.NET Programming
Language includes to learn:


The graphical user interface or GUI (“gooey”) whic...
TextBox

Label
GroupBox

PictureBox
RadioButtons
Buttons
Form

11/06/13

Mr. Roger C. Argarin

14


To create a VB.NET program you will utilize the
Visual Basic .NET 2005 development
environment, and you will
create a w...


The style of Execution as shown below is
called event-driven:
A GUI determines how a user interacts with the
program
 ...


Visual Studio .NET 2005 includes:
 Visual Basic, Visual C++, C#, J#, and the .NET
framework.
 The .NET framework allo...


Planning (design)
design the GUI (user interface)
 list the objects and properties needed
 plan the event procedures ...


Each Visual Basic application create the following
files with extensions:
 .sln - a solution file that holds informati...







Click on
-> Start
Choose ->
All
Programs
Choose ->
Microsoft
Visual
Studio
.NET 2005
Click on
->
Microsoft
Visu...
•
•
•

11/06/13

Click
on->
File
Choose
-> New
Select>
Project

Mr. Roger C. Argarin

21
The Microsoft VS Development Environment is
also called integrated development
environment (IDE):
A form designer
 A code...
Each window can be moved, resized,
opened, closed, or customized

Menu bar

Toolbar
Menu bar – includes file, edit, view...
Tool bar

Menu bar

Tabs

Toolbox
Form
window

Solution
Explorer
window
Properties window

11/06/13

Mr. Roger C. Argarin
...




11/06/13

Click
Toolbox
from the
Toolbar
s
Toolbox
contains
a list of
tools
that
helps to
design
projects

Mr. Roger...
welcome.sln


View Code



View
Design/
Form



Properties

11/06/13

Mr. Roger C. Argarin

26
•The properties window allows you to see and set all of the properties of the
particular object that you have placed on th...



Introduction – Learning Objectives of the class
Introduction to Visual Basic .NET2005
Basic Concept of Visual Basic
...
Upcoming SlideShare
Loading in …5
×

Introduction to visual basic programming

  • Be the first to comment

Introduction to visual basic programming

  1. 1. 11/06/13 Mr. Roger C. Argarin 1
  2. 2.   Introduction – Learning objectives of the class Introduction to Visual Basic Brief History of Visual Basic  Basic Concept of Visual Basic Programming Language  Programming Environment   Use Microsoft Visual Studio .NET2005 11/06/13 Mr. Roger C. Argarin 2
  3. 3.      Visual program design and development Fundamentals of Object Oriented Programming (OOP) Event driven programming Objects, properties and methods Write Visual Basic projects 11/06/13 Mr. Roger C. Argarin 3
  4. 4.   Text book:  Introduction to Visual Basic 2008 Programming Copernicus P. Pepito References:      11/06/13 Online Learning Center: http://www.mhhe.com/vbnet2005 Microsoft VB.NET Homepage: http://www.microsoft.com/net VB developers Resource Center: http://www.mvps.org/vbnet Microsoft Developers Network Homepage for VB.NET: http://msdn.microsoft.com/vbasic MSDN Home page http://msdn.microsoft.com/ Mr. Roger C. Argarin 4
  5. 5.   The Visual Basic programming language was developed by Alan Cooper, an American scientist in the late 1980’ This programming language was created with the main purpose of teaching programmers and developers how to design graphical-user interface (GUI) programs easily. 11/06/13 Mr. Roger C. Argarin 5
  6. 6. The Structure and Operation of a Computer  Computer system: hardware and software  Processor (registers, primitive operations)  Main memory (RAM, ROM)  Data types (integers, real, floating-point numbers, strings, etc.)  Sequence and Data Control  Storage management  Operating environment 11/06/13 Mr. Roger C. Argarin 6
  7. 7. Computer System (PC) Hardware Software Data types, Sequence and Data Control, Storage Management, Operating Environment Processor, Memory 11/06/13 Mr. Roger C. Argarin 7
  8. 8.     Input Unit (keyboard, mouse, scanner, Internet through TCP/IP) Central Processing Unit (CPU) Output Unit Memory Unit Primary memory (RAM, ROM)  Secondary memory (Hard drives, zip disks, floppy disks, etc)  11/06/13 Mr. Roger C. Argarin 8
  9. 9.    Objects are essentially reusable software components that model items in the real world, such as windows cars, vehicles, and so on Object technology is a packaging scheme that enables programmers to create meaningful software units. Object-Oriented Programming tends to produce software that is more understandable, better organized, and easier to maintain, modify and debug. 11/06/13 Mr. Roger C. Argarin 9
  10. 10.  Object ==> Noun   Property ==> Adjective   Move a Form Event ==> Occurs when the user takes an action   Color of a Form Method ==> Verb   Form and Controls User clicks a button, User moves a form Class ==> Template to create new object  11/06/13 Each control added is an Instance of a Class Mr. Roger C. Argarin 10
  11. 11.  Used to reference object's properties and events in code  Object dot Property  Form.Text, TextBox.Text  Object dot Event  Form.Hide( ), TextBox.Focus( )  To reference an object's events use an underscore instead of a dot  Button_Click, ListBox_TextChanged 11/06/13 Mr. Roger C. Argarin 11
  12. 12.    Class = automobile Properties = make, model, color, year Object = each individual car    Object is also an Instance of the automobile class Methods = start, stop, speedup, slowdown Events = car arrives, car crashes 11/06/13 Mr. Roger C. Argarin 12
  13. 13.  Learning Visual Basic.NET Programming Language includes to learn:  The graphical user interface or GUI (“gooey”) which is an essential component of visual programming  The GUI defines how various elements look and function Visual Basic programming language Microsoft Developers Network Homepage for VB.NET: http://msdn.microsoft.com/vbasic  11/06/13 Mr. Roger C. Argarin 13
  14. 14. TextBox Label GroupBox PictureBox RadioButtons Buttons Form 11/06/13 Mr. Roger C. Argarin 14
  15. 15.  To create a VB.NET program you will utilize the Visual Basic .NET 2005 development environment, and you will create a window, called form  select elements, which are classes, from a toolbox and place them within the window, called controls  write code for each object that you place on the window that defines how the object responds to various events, called object-oriented programming (OOP).  11/06/13 Mr. Roger C. Argarin 15
  16. 16.  The style of Execution as shown below is called event-driven: A GUI determines how a user interacts with the program  Each user interaction with the computer: pressing a key, clicking a button, or selecting a menu item causes an event to occur  Whenever an event occurs, the code you have written to handle that event is executed  11/06/13 Mr. Roger C. Argarin 16
  17. 17.  Visual Studio .NET 2005 includes:  Visual Basic, Visual C++, C#, J#, and the .NET framework.  The .NET framework allowing objects from different languages to operate together  The .NET languages-based programs all compile to a common machine language, called Microsoft Intermediate Language (MSIL)  The MSIL code runs in the Common Language Runtime (CLR), which is part of the file .NET framework. 11/06/13 Mr. Roger C. Argarin 17
  18. 18.  Planning (design) design the GUI (user interface)  list the objects and properties needed  plan the event procedures (what the code does)   Programming (implementation) define the GUI using objects (Forms, Text Boxes, Labels, etc.  set the properties  write BASIC code to implement procedures  11/06/13 Mr. Roger C. Argarin 18
  19. 19.  Each Visual Basic application create the following files with extensions:  .sln - a solution file that holds information about the project. This is the only file that is opened  .suo - a solution user options file that stores information about the selected options  .vb - a .vb file that holds the definition of a form  .resx - a resource file for the form  .vbproj - a project file that describes the project and lists the files are included  .vbproj.user - a project user option file that holds project option settings 11/06/13 Mr. Roger C. Argarin 19
  20. 20.     Click on -> Start Choose -> All Programs Choose -> Microsoft Visual Studio .NET 2005 Click on -> Microsoft Visual Studio .NET 2005 11/06/13 Mr. Roger C. Argarin 20
  21. 21. • • • 11/06/13 Click on-> File Choose -> New Select> Project Mr. Roger C. Argarin 21
  22. 22. The Microsoft VS Development Environment is also called integrated development environment (IDE): A form designer  A code editor  A compiler  A debugger  An object browser  11/06/13 Mr. Roger C. Argarin 22
  23. 23. Each window can be moved, resized, opened, closed, or customized  Menu bar  Toolbar Menu bar – includes file, edit, view, project, build, debug, data, format, tools, window, and help menu Toolbar - includes many buttons as shortcuts for frequently used operations. Each button represents a command that can be selected from a menu. Most toolbars’ buttons are displayed in the main window of the IDE    Menu bar Toolbar 11/06/13 Mr. Roger C. Argarin 23
  24. 24. Tool bar Menu bar Tabs Toolbox Form window Solution Explorer window Properties window 11/06/13 Mr. Roger C. Argarin 24
  25. 25.   11/06/13 Click Toolbox from the Toolbar s Toolbox contains a list of tools that helps to design projects Mr. Roger C. Argarin 25
  26. 26. welcome.sln  View Code  View Design/ Form  Properties 11/06/13 Mr. Roger C. Argarin 26
  27. 27. •The properties window allows you to see and set all of the properties of the particular object that you have placed on the form. There are many properties for each object, and all can be seen by scrolling down the properties window. 11/06/13 Mr. Roger C. Argarin 27
  28. 28.   Introduction – Learning Objectives of the class Introduction to Visual Basic .NET2005 Basic Concept of Visual Basic  Visual Basic Programming Language    Use Microsoft Visual Studio .NET2005 Next - First Visual Basic Planning and Programming 11/06/13 Mr. Roger C. Argarin 28

    Be the first to comment

    Login to see the comments

  • soojyu

    Aug. 24, 2016
  • heinzawwin

    Sep. 20, 2016
  • AtharvaBadshah

    Oct. 1, 2016
  • Rajapk2

    Oct. 10, 2016
  • sinedos

    Oct. 22, 2016
  • vishant2309

    Dec. 31, 2016
  • kvnajiya

    Jan. 13, 2017
  • mamatsiantar

    Jan. 20, 2017
  • volgavyas

    Mar. 18, 2017
  • pushpadanganavar

    May. 24, 2017
  • shobig

    Jul. 18, 2017
  • PhyoeThu2

    Aug. 6, 2017
  • kyawsoenyan

    Oct. 11, 2017
  • JoseMiralda

    Oct. 20, 2017
  • MajedAlrasheedi

    Oct. 24, 2017
  • EngrShoaibRao

    Nov. 14, 2017
  • Ashutoshkumar477

    Jan. 6, 2018
  • HikmaAulia1

    Apr. 10, 2019
  • GodsonWest

    Feb. 7, 2020
  • ssuser9f6e81

    Apr. 2, 2020

Views

Total views

36,029

On Slideshare

0

From embeds

0

Number of embeds

19

Actions

Downloads

2,000

Shares

0

Comments

0

Likes

31

×