An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

18
An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider 1

Transcript of An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Page 1: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

An Introduction to Computers and Visual Basic

Chapter 1- Visual Basic Schneider 1

Page 2: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Introduction to ComputersUsing Windows

Files and FoldersAn Introduction to Visual Basic

Chapter 1- Visual Basic Schneider 2

Page 3: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Parts of a Computer System:Hardware: Electronic Devices Software: Instructions and Computer

Programs

Chapter 1- Visual Basic Schneider 3

Page 4: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Main components of Hardware:Input : Keyboard, MouseSystem unit:

Random Access Memory (RAM)Central Processing Unit (CPU)

Output: Monitor, PrinterSecondary Storage: Disk Drive

Chapter 1- Visual Basic Schneider 4

Page 5: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Random Access Memory (RAM) Stores program instructions and data needed

for processing.Stores intermediate and final results of

processing.Contents are erased when computer is turned

off or reset.

Chapter 1- Visual Basic Schneider 5

Page 6: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Programming Languages:Machine Language High level Language

Chapter 1- Visual Basic Schneider 6

Page 7: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Machine LanguageThe fundamental language of the

computer’s processor, also called Low Level Language.

All programs are converted into machine language before they can be executed.

Chapter 1- Visual Basic Schneider 7

Page 8: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

High Level LanguageComputer (programming) languages that are

easier to learn.Uses English like statements.Examples are C++, Visual Basic, and Java

Chapter 1- Visual Basic Schneider 8

Page 9: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Software:Instructions for the hardware.A collection of instructions is called a

program.

Chapter 1- Visual Basic Schneider 9

Page 10: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Using Windows Basic techniques to use the mouse:

PointingClickingDraggingDouble-ClickingHovering

Chapter 1- Visual Basic Schneider 10

Page 11: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Key Terms in using WindowsTitle BarActive windowDragging a window

Chapter 1- Visual Basic Schneider 11

Page 12: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Using WindowsReviewing Notepad to learn more about

Windows applicationsNotepad is an item in the Accessories menu

Chapter 1- Visual Basic Schneider 12

Page 13: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Files & Folders:A disk can store thousands of files.To organize your files you have to store

them in different folders (directories).File name consists of letters, digits,

periods and other assorted characters.The following character cannot be used in

a file or folder name /, \, ?, *, :, ”, <, >, |A File name can contain up to 215

characters

Chapter 1- Visual Basic Schneider 13

Page 14: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Key Terms in using FoldersRoot folderPath: A nested sequence of folders

Example: A:\Temp\MyProjects\File Specification: A drive letter, path, and

filenameExample: A:\Temp\MyProjects\Example.vbp

Chapter 1- Visual Basic Schneider 14

Page 15: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

History of Visual Basic:BASIC stands for Beginner’s All-purpose

Symbolic Instruction Code.BASIC was developed by John Kemeny

and Thomas Kurtz in mid-1960s.Visual Basic was released in 1991 by the

Microsoft Corporation.

Chapter 1- Visual Basic Schneider 15

Page 16: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Introduction to Visual Basic:A language used to create windows

applications.Programs are developed with a Graphical

User Interface or GUI.The instructions executed in the program are

controlled by events.

Chapter 1- Visual Basic Schneider 16

Page 17: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Terminology used in Visual Basic:FormControlObjectPropertiesEvent

Chapter 1- Visual Basic Schneider 17

Page 18: An Introduction to Computers and Visual Basic Chapter 1- Visual Basic Schneider1.

Steps to Design a Visual Basic ApplicationDesign the appearance of the window that

the user sees.Determine the events that the controls on

the window should recognize.Write the event procedures for those

events.

Chapter 1- Visual Basic Schneider 18