You are on page 1of 23

Lesson 04:

Visual Studio 2005

Objectives
What you will learn...
The Visual Studio 2005 IDE
How to create basic windows applications
How to use VS2005 in the software development cycle.

Lesson 4: Visual Studio 2005

Description
Provides a stunning way of programming using the .NET
framework
Provides tools for the ease of a developer
Provides faster programming pace with its auto-complete
and drag-and-drop capabilities

Lesson 4: Visual Studio 2005

Start Page
Start Page is the most
probable first page that you will
see when you open Visual
Studio
From here, you can create or
open a project/solution
Start page has some articles
direct from Microsoft

Lesson 4: Visual Studio 2005

Solutions
Visual Studio 2005 works by
Solutions
A solution is composed of one
or more projects
A project is composed of files
to solve one problem or
Solution Items

Lesson 4: Visual Studio 2005

Projects
A projects as said earlier
contains files to solve one
problem
A project in your hard disk
looks like the one shown at the
right
The bin folder contains
compiled application
Inside the Bin folder contains
Debug and Release folders,
Debug folder is used by
Visual Studio 2005 when it is
running your program

The Properties contains the


settings of your project

Lesson 4: Visual Studio 2005

Fascinating Features
Provides possible contents on
your solution (auto-complete)
Provides color for reading
enhancement
Matches the brackets and
parentheses to ease user
readability
Provides auto-tab and autoclose of brackets

Lesson 4: Visual Studio 2005

Text Editing Features


Display Quick Info
Change indentation
Comment or uncomment
selected lines

Lesson 4: Visual Studio 2005

Nifty Windows
Class View
Error List
Output Window
Properties Window
Solution Explorer
Task List
Toolbox

Lesson 4: Visual Studio 2005

Class View
Displays the classes you have
and its functions
The Class View allows you to
add virtual folders and to
navigate within the Objects
and Members panes
It also displays all the
referenced libraries and its
functions
It has a search function if you
want to search for a class or
namespace

Lesson 4: Visual Studio 2005

10

Error List
Displays the current errors
provided by your compiler
If an error is double clicked, it
will go to the source of error
Display the Errors, Warnings,
and Messages produced as
you edit and compile code
Find deployment errors,
certain Static Analysis errors,
and errors detected while
applying Enterprise Template
policies

Lesson 4: Visual Studio 2005

11

Output
Displays the log of build and
run

Lesson 4: Visual Studio 2005

12

Properties
Displays the editable
properties and events of a
component

Lesson 4: Visual Studio 2005

13

Solution Explorer
Solution Explorer provides you
with an organized view of your
projects and their files as well
as ready access to the
commands that pertain to them
Visual Studio 2005 provides a
GUI to edit properties of your
solutions
Add or remove References

Lesson 4: Visual Studio 2005

14

Task List
A personal task list given by
Visual Studio
Here you can add and delete a
task
You can also set priorities on
your tasks

Lesson 4: Visual Studio 2005

15

Toolbox
The Toolbox displays icons for
items that you can add to
Visual Studio projects
The toolbox can also contain
text by dragging and dropping
selected text on the toolbox

Lesson 4: Visual Studio 2005

16

Dynamic Help
Provides help topics from your
current specific work

Lesson 4: Visual Studio 2005

17

Form Designer
The ability to drag and drop
components
Resize and handle events

Lesson 4: Visual Studio 2005

18

Other Things You Can Edit


XML
JPEG
HTML
SQL Database
Icon
and many more

Lesson 4: Visual Studio 2005

19

Refactor
Refactor provides moving of
selected codes to a new
method
Provides cascade renaming of
variables

Lesson 4: Visual Studio 2005

20

Compile Your Solutions


Press 'F6' from your key board
Click 'Build' button from the 'Build' toolbar (if displayed, if
not Build Toolbar can be shown through View Menu
Toolbars Build)
Go to Build Menu Build Solution
On the solution explorer, Right Click on a project
Select 'Build'

Lesson 4: Visual Studio 2005

21

Run Your Solution


Press F5
Go to 'Debug' menu 'Start
Debugging'

Lesson 4: Visual Studio 2005

22

Powerful Debugger
Visual Studio 2005 provides
powerful debugger to debug
your programs
Provides line breaks to know
when to pause a program
Provides variable watches to
know variable values at a
certain time

Lesson 4: Visual Studio 2005

23

You might also like