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

Post on 13-Jan-2016

223 Views

Category:

Documents

2 Downloads

Preview:

Click to see full reader

TRANSCRIPT

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

(LAB 1 )(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

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.”

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.

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

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.

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

Visual Studio 2008 will begin its installation on your computer!

Visual studio EnvironmentVisual studio Environment

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#…………..

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

Recent Projects

Getting start (Help)

Compilation error and warning

Create New projectCreate New project

Select programming language in our case (visual C#)

Select project type

Project name and there location

• 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

1- Menu Bar and toolbar

2- Tool Box

4- Solution explorer

3- Properties

1- Menu Bar and toolbar

• 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

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

2- Toolbox

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

Properties Properties Value

We called this properties label1

3- Properties Cont

We called this properties of button1

3- Properties Cont

Button propertiesButton propertiesProperty Effect

Text

BackColor

Font

Location

Size

4- The solution explorer

Execute ProgramExecute Program• You can execute program using

toolbar icon

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

Using Help

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

Using Help – Dynamic Help

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

• 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

Any Question?

top related