visual studio

26
Microsoft Visual Studio 2010 An Introduction to Visual Studio 2010 Faran Sabir Roll. 1009 BS- IT(Morning) Microsoft Visual Studio Presentation

Upload: university-of-educationlahore

Post on 15-Jul-2015

83 views

Category:

Education


4 download

TRANSCRIPT

Page 1: Visual Studio

Microsoft Visual Studio 2010

An Introduction to Visual Studio 2010

Faran Sabir Roll. 1009 BS-IT(Morning)

Microsoft Visual Studio Presentation

Page 2: Visual Studio

Overview

Machine, Assembly and High-Level Languages Visual Studio 2010 IDE Solutions and Projects Creating a New Project Examples

Microsoft Visual Studio Presentation

Page 3: Visual Studio

Machine, Assembly and High-Level Languages Programmers write instructions in programming

languages. Some of these are directlyunderstandable 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

Page 4: Visual Studio

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

Page 5: Visual Studio

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

Page 6: Visual Studio

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 BASEPAYADD OVERPAYSTORE GROSSPAY

Microsoft Visual Studio Presentation

Page 7: Visual Studio

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

Page 8: Visual Studio

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 + overTimePayVisual Basic is one of the world’s most popular

high-level programming languages. Microsoft Visual Studio Presentation

Page 9: Visual Studio

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

Page 10: Visual Studio

Microsoft Visual Studio

Microsoft Visual Studio Presentation

Page 11: Visual Studio

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

Page 12: Visual Studio

Visual BasicVisual 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

Page 13: Visual Studio

Visual Basic

Microsoft Visual Studio Presentation

Page 14: Visual Studio

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

Page 15: Visual Studio

C# (C Sharp)

Microsoft Visual Studio Presentation

Page 16: Visual Studio

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

Page 17: Visual Studio

J# (J Sharp)

Microsoft Visual Studio Presentation

Page 18: Visual Studio

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 memory manipulation.

Microsoft Visual Studio Presentation

Page 19: Visual Studio

C++ (C plus plus)

Microsoft Visual Studio Presentation

Page 20: Visual Studio

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

Page 21: Visual Studio

ASP.NET (Web Page Creation)

Microsoft Visual Studio Presentation

Page 22: Visual Studio

Some Advantages of Visual Studio

Greatly reduces amount of code you must writeAutomatically colors code depending what it is

Comments are GreenKeywords are Blue

Organizes code in separate files IntelliSense

Code SnippetsReal-time compiler feedback

Blue squiggle under code indicates an errorGreen squiggle under code indicates a possible error

Microsoft Visual Studio Presentation

Page 23: Visual Studio

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

Page 24: Visual Studio

Working With a ProjectThe 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 icon Solution Explorer icon

Microsoft Visual Studio Presentation

Page 25: Visual Studio

Properties Window

| Properties window displaying a Form’s properties.

Object’sname

(Form1) Object’s class

(System.Windows.Forms.Form)

Down arrow for selecting Formor control objects

Items that have beenchanged from their defaultvalues (by the user or by VisualStudio) are listed in bold

Property values(right column)

Properties(left column)

Description ofselected property

Design category

Selected property

Alphabetical icon

Categorized icon

Component object box

Microsoft Visual Studio Presentation

Page 26: Visual Studio

Reference

1. http://www.facebook.com/l.php?u=http%3A%2F

%2Fen.m.wikipedia.org%2Fwiki

%2FMicrosoft_Visual_Studio&h=lAQFbPjZl

2. http://www.acsu.buffalo.edu/~bsharris/Homepage%20powerpoint.ppt

Microsoft Visual Studio Presentation