1. Microsoft Visual Studio 2010
An Introduction to Visual Studio 2010
Faran Sabir Roll. 1009 BS-
IT(Morning)
Microsoft Visual Studio Presentation
2. Overview
Machine, Assembly and High-Level Languages
Visual Studio 2010 IDE
Solutions and Projects
Creating a New Project
Examples
Microsoft Visual Studio Presentation
3. Machine, Assembly and High-
Level Languages
Programmers write instructions in programming
languages. Some of these are directly
understandable by computers, and others require
intermediate translation steps.
Computer languages that are in use today can be
divided into three general types:
machine languages
assembly languages
high-level languages
Microsoft Visual Studio Presentation
4. Machine, Assembly and High-
Level Languages
A computer can directly understand only its own
machine language.
As the “natural language” of a particular computer,
machine language is defined by the computer’s
hardware design. Machine languages are machine
dependent.
Machine languages generally consist of streams of
numbers (ultimately reduced to 1s and 0s in the
binary number system).
Microsoft Visual Studio Presentation
5. Machine, Assembly and High-
Level Languages
The following section of a machine-language
program demonstrates the incomprehensibility
of machine language to humans:
+1300042774
+1400593419
+1200274027
Machine-language programming proved to be
slow and error prone.
Microsoft Visual Studio Presentation
6. Machine, Assembly and High-
Level Languages
Programmers began using English-like
abbreviations to represent the computer’s
basic operations.
These abbreviations formed the basis of
assembly languages.
LOAD BASEPAY
ADD OVERPAY
STORE GROSSPAY
Microsoft Visual Studio Presentation
7. Machine, Assembly and High-
Level Languages
Translator programs called assemblers
convert assembly-language programs to
machine language.
Although it is clearer to humans, computers
cannot understand assembly-language code
until it is translated into machine language.
Assembly languages still require many
instructions to accomplish even the simplest
tasks.
Microsoft Visual Studio Presentation
8. Machine, Assembly and High-
Level Languages
To speed up the programming process,
high-level languages were developed.
Programs called compilers convert high-level-
language programs into machine language.
High-level languages look almost like everyday
English and contain common mathematical
notations.
grossPay = basePay + overTimePay
Visual Basic is one of the world’s most popular
high-level programming languages.
Microsoft Visual Studio Presentation
9. Microsoft Visual Studio
Microsoft Visual Studio is an integrated
development environment (IDE) from Microsoft. It is
used to develop computer programs for Microsoft
Windows, as well as web sites, web applications and web
services. Visual Studio uses Microsoft software
development platforms such as Windows API, Windows
Forms, Windows Presentation Foundation, Windows
Store and Microsoft Silverlight. It can produce
both native code and managed code.
Microsoft Visual Studio Presentation
11. Visual Studio 2010 Languages
Visual Basic.NET
C# (pronounced C-Sharp)
J# (pronounced J-Sharp)
C++ (pronounced C plus plus)
ASP.NET (web page creation)
Microsoft Visual Studio Presentation
12. Visual Basic
Visual Basic is a so-called object-oriented,
event-driven visual programming language.
Programs are created with the use of a software
tool called an Integrated Development
Environment (IDE).
The latest versions of Visual Basic are fully object
oriented and respond to user-initiated events such
as mouse clicks, keystrokes and timers.
In Visual Studio, it is convenient to make programs
by dragging and dropping predefined objects like
buttons and textboxes.
Microsoft Visual Studio Presentation
14. C# (C Sharp)
C# Studio is a simple IDE for
a C#/Mono/GTK# developer. It
has a standard "project/editor/output"
interface.
The latest and greatest version is 0.1.
The CVS access and online CVS is
also available. Microsoft Visual Studio Presentation
16. J# (J Sharp)
Visual J# programming language was a
transitional language for programmers
of Java and Visual J++ languages, so
they could use their existing knowledge
and applications on .NET Framework.
Microsoft Visual Studio Presentation
18. C++ (C plus plus)
C++ is a general-purpose
programming language. It
has imperative, object-
oriented and generic
programming features, while
also providing the facilities
for low-level memoryMicrosoft Visual Studio Presentation
19. C++ (C plus plus)
Microsoft Visual Studio Presentation
20. ASP.NET (Web Page Creation)
ASP.NET is an open source server-
side Web application framework designed
for Web development to produce dynamic
Web pages. It was developed
by Microsoft to allow programmers to
build dynamic web sites, web
applications and web services.
Microsoft Visual Studio Presentation
22. Some Advantages of Visual Studio
Greatly reduces amount of code you must write
Automatically colors code depending what it is
Comments are Green
Keywords are Blue
Organizes code in separate files
IntelliSense
Code Snippets
Real-time compiler feedback
Blue squiggle under code indicates an error
Green squiggle under code indicates a possible error
Microsoft Visual Studio Presentation
23. Creating a New Project
Select either File > New Project…, which
creates a new project, or File > Open
Project…, which opens an existing project.
From the Start Page, under the Recent
Projects section, click the link Create:
Project… or Open: Project….
Click either the New Project Button or the
Open File Button.
Microsoft Visual Studio Presentation
24. Working With a Project
The Solution Explorer window displays a list of
the files in a project and the projects in a solution.
The Properties window displays an object’s
attributes, such as its size, color and position. The
Properties window allows you to set object
properties visually without writing code.
Using visual programming, you can “drag and
drop” controls onto the Form from the Toolbox.
Properties icon Object Browser icon
Toolbox iconSolution Explorer
icon
Microsoft Visual Studio Presentation
25. Properties Window
| Properties window displaying a Form’s properties.
Object’s
name
(Form1)
Object’s class
(System.Windows.Forms.Form)
Down arrow for selecting Form
or control objects
Items that have been
changed from their default
values (by the user or by Visual
Studio) are listed in bold
Property values
(right column)
Properties
(left column)
Description of
selected property
Design category
Selected property
Alphabetical icon
Categorized icon
Component object box
Microsoft Visual Studio Presentation