introduction to the visual studio.net ide (lab 1 )

28
Introduction to the Introduction to the Visual Studio .NET IDE Visual Studio .NET IDE (LAB 1 ) (LAB 1 )

Upload: charity-mcdonald

Post on 13-Jan-2016

222 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Introduction to the Visual Studio.NET IDE (LAB 1 )

Introduction to the Visual Introduction to the Visual Studio .NET IDEStudio .NET IDE

(LAB 1 )(LAB 1 )

Page 2: Introduction to the Visual Studio.NET IDE (LAB 1 )

Chapter OutlineChapter Outline

• Install Visual studio 2008Install Visual studio 2008

• Visual Studio EnvironmentVisual Studio Environment

• Menu Bar and Toolbar Menu Bar and Toolbar

• Visual Studio .NET IDE WindowsVisual Studio .NET IDE Windows

• Solution Explorer Solution Explorer

– ToolboxToolbox

– Properties WindowProperties Window

– Using HelpUsing Help

Page 3: Introduction to the Visual Studio.NET IDE (LAB 1 )

Install Visual Studio IDEInstall Visual Studio IDE

• Download Visual studio IDE from the internet.Download Visual studio IDE from the internet.

• Opening Setup.exeOpening Setup.exe

1- double click “Install Visual Studio 2008.”

Page 4: Introduction to the Visual Studio.NET IDE (LAB 1 )

Install Visual Studio IDE Cont.Install Visual Studio IDE Cont.

2- Review and accept license terms.

3- confirm that the Registration key andcomputer name are entered correctly. Click Next.

Page 5: Introduction to the Visual Studio.NET IDE (LAB 1 )

Install Visual Studio IDE Cont.Install Visual Studio IDE Cont.

4- Select the Custom radio button, and then ensure that the Product installation path is optimal. Then Click Next

Page 6: Introduction to the Visual Studio.NET IDE (LAB 1 )

Install Visual Studio IDE Cont.Install Visual Studio IDE Cont.

5- Make sure C# is checked, and ensure that you have enough space on your computer to complete the install. Then Click install.

Page 7: Introduction to the Visual Studio.NET IDE (LAB 1 )

Install Visual Studio IDE Cont.Install Visual Studio IDE Cont.

Visual Studio 2008 will begin its installation on your computer!

Page 8: Introduction to the Visual Studio.NET IDE (LAB 1 )

Visual studio EnvironmentVisual studio Environment

Page 9: Introduction to the Visual Studio.NET IDE (LAB 1 )

Overview of the VS.NET IDE• Single IDE for all Languages.• Server Explorer

– Event Viewer, Message Queues, Services– SQL Databases, Data Connection, Etc.

• Integrated IE Browser• HTML/XML Editors• Dynamic Help• Common Forms Editor

– VB.NET, C++, and C#…………..

Page 10: Introduction to the Visual Studio.NET IDE (LAB 1 )

Overview of the VS.NET IDEOverview of the VS.NET IDE User creates a new project in Visual Studio

A solution and a folder are created at the same time with the same name as the project

The project belongs to the solution Multiple projects can be included in a solution

Solution Contains several folders that define an application’s structure Solution files have a file suffix of .sln

Project: contains files for a part of the solution Project file is used to create an executable application Every project has a type (Console, Windows, etc.) Every project has an entry point: A Sub procedure named Main or a

Form

Page 11: Introduction to the Visual Studio.NET IDE (LAB 1 )

Recent Projects

Getting start (Help)

Compilation error and warning

Page 12: Introduction to the Visual Studio.NET IDE (LAB 1 )

Create New projectCreate New project

Select programming language in our case (visual C#)

Select project type

Project name and there location

Page 13: Introduction to the Visual Studio.NET IDE (LAB 1 )

• By default, the Visual Studio .NET IDE assigns the name WindowsApplication1 to the new project and solution.

• The Visual Studio Projects folder in the My Documents folder is the default folder referenced when Visual Studio .NET is executed for the first time.

• Programmers can change both the name of the project and the location where it is created.

Overview of the Visual Overview of the Visual Studio .NET IDEStudio .NET IDE

Page 14: Introduction to the Visual Studio.NET IDE (LAB 1 )

1- Menu Bar and toolbar

2- Tool Box

4- Solution explorer

3- Properties

Page 15: Introduction to the Visual Studio.NET IDE (LAB 1 )

1- Menu Bar and toolbar

Page 16: Introduction to the Visual Studio.NET IDE (LAB 1 )

• The IDE provides windows for accessing project files The IDE provides windows for accessing project files and customizing controls.and customizing controls.

•These windows can be accessed via the toolbar icons or These windows can be accessed via the toolbar icons or by selecting the name of the desired window in the by selecting the name of the desired window in the View View menu.menu.

1- Menu Bar and toolbar

Page 17: Introduction to the Visual Studio.NET IDE (LAB 1 )

The Toolbox window contains controls used to customize forms. Programmers can “drag and drop” controls onto the form.

2- Toolbox

Page 18: Introduction to the Visual Studio.NET IDE (LAB 1 )

3- PropertiesThe Properties window displays the properties for a form or control. Properties specify information such as size, color and position.

Properties Properties Value

Page 19: Introduction to the Visual Studio.NET IDE (LAB 1 )

We called this properties label1

3- Properties Cont

Page 20: Introduction to the Visual Studio.NET IDE (LAB 1 )

We called this properties of button1

3- Properties Cont

Page 21: Introduction to the Visual Studio.NET IDE (LAB 1 )

Button propertiesButton propertiesProperty Effect

Text

BackColor

Font

Location

Size

Page 22: Introduction to the Visual Studio.NET IDE (LAB 1 )

4- The solution explorer

Page 23: Introduction to the Visual Studio.NET IDE (LAB 1 )

Execute ProgramExecute Program• You can execute program using

toolbar icon

• When Visual Studio .NET begins execution, the Start Page displays

Page 24: Introduction to the Visual Studio.NET IDE (LAB 1 )

Using Help

The Help menu contains a variety of commands, which are summarized in the following table.

Page 25: Introduction to the Visual Studio.NET IDE (LAB 1 )

Using Help – Dynamic Help

Page 26: Introduction to the Visual Studio.NET IDE (LAB 1 )

In C# .NET the code you create is organized In C# .NET the code you create is organized using different layers of grouping :using different layers of grouping :– Solutions : Solutions : contain one or more projects.contain one or more projects.– Projects : Projects : contain more than one file.contain more than one file.– Files.Files.

ConclusionConclusion

Page 27: Introduction to the Visual Studio.NET IDE (LAB 1 )

• Solution Explorer : Solution Explorer : provides access to all the provides access to all the files in a solution.files in a solution.

• ToolBox : ToolBox : contains controls used to customize contains controls used to customize forms.forms.

• Properties Window : Properties Window : displays the properties displays the properties for a form or a control.for a form or a control.

ConclusionConclusion

Page 28: Introduction to the Visual Studio.NET IDE (LAB 1 )

Any Question?