Thursday, February 21, 2013

VB.NET


Chapter 1
 
An Introduction to Computers and Visual Basic.NET


Outline and Objectives

Introduction to Computers

Using Windows

Files and Folders

An Introduction to Visual Basic.NET

Biographical History of Computing
Introduction to Computers

Personal computer

Generally, a computer that is operated by one person at a time
Computer uses in Society

Banking – customer transactions

Airlines – reservations system

NASA – control satellites

Internet – email, research, shopping
Programs Students Will Create in This Text

Create and manage a list of friends' addresses and phone numbers

Calculate loan payments and amortization

Computations to support other course work
Communicating with the Computer

Machine language – low level, 0 and 1, hard for humans to understand

VB.NET – high level, understood by humans, consists of instructions such as Click, If, Do
Computers and Complicated Tasks

Tasks are broken down into instructions that can be expressed by a computer language

A program is a sequence of instructions

Programs can be only a few instructions or millions of lines of instructions
Servers

A server can be almost any computer

A server provides resources to other computers

Files

Internet

Printers
All Programs Have in Common:

Take data and manipulate it to produce a result

Input – Process – Output

Input – from files, the keyboard, or other input device

Output – to the monitor, printer, file, or other output device
Hardware and Software

Hardware – the physical components of a computer

Keyboard

Disk drive

Monitor

Software – The instructions that tell the computer what to do
Programmer and User

Programmer – the person who solves the problem and writes the instructions for the computer

User – any person who uses the program written by the programmer
Problem Solving

Developing the solution to a problem

Algorithm – a step by step series of instructions to solve a problem
Types of Problems in this Text

Business computations

Managing records

Managing lists

And more
VB.NET

BASIC developed at Dartmouth in the early 1960s

Visual Basic created by Microsoft in 1991

VB.NET similar to Visual Basic, but more powerful
Internet

A connection of thousands of networks around the world – each network has

A computer and one or more routers

Router is a device or computer connected to two or more networks

All use TCP/IP
World Wide Web vs. Internet




World Wide Web is a collection of information stored on servers throughout the Internet known as Web servers.

HTTP – HyperText Transfer Protocol enabled researchers to share data – creating a "web" of information

Internet is used to access documents on the World Wide Web

Mouse Actions:

Pointing

Hovering

Clicking

Double-Clicking

Dragging
Windows and Its Little Windows

Title Bar

Active window
Using the Notepad

Reviewing Notepad to learn more about Windows application

Notepad is an item in the Accessories menu

Notepad can be used to create simple data files
Parts of the Window

Restore button

Vertical scroll bar

Horizontal scroll bar

Menu bar
1.3 Files & Folders:

Disk is a permanent storage.

A disk can store thousands of files.

A disk drive is identified by a letter.

To organize your files you have to store them in different folders (directories).
Using Windows Explorer
Start | Run | type in Explorer
Folder pane on left
Detail pane on right
To Display File Extensions
Alt/T/O
Click View
Uncheck "Hide file extensions for known file types"
Click OK
To Create a New Folder
Highlight the folder that is to contain the new folder
File | New | Folder
Type in a name for the new folder and press Enter
To Rename a Folder or File
Right click on the folder or file
Click on Rename
Type in a new name (or alter the current name) and press Enter
To Delete a Folder or File
Right click on the folder
Click on Delete
Click on Yes
To Copy a Folder or File
Right click on the folder file
Click on copy
Open the folder where the copy is to be placed
Right click on the second folder
Click on Paste
To Move a Folder or File
Right click on the folder or file
Click on Cut
Open the folder where the copy is to be moved
Click on the second folder with the right mouse button
Click on Paste
Chapter 1 - VB.NET by Schneider