2. introduction to the visual studio.net ide. chapter outline overview of the visual studio.net ide...

26
2. Introduction to the 2. Introduction to the Visual Studio .NET IDE Visual Studio .NET IDE

Upload: dina-reynolds

Post on 16-Jan-2016

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

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

Page 2: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Chapter OutlineChapter Outline

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

• 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: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Overview of the VS.NET IDEOverview of the VS.NET IDEIntegrated Development Environment

Visual Basic.NETMany language enhancementsInheritance,Overloading, Free Threading

Visual C++Integration with .NET Framework with managed extensions (classes)

C#New development languageBased on C/C++ with Garbage Collection/Memory Management

JUMP (Java User Migration Path) to .NET

http://msdn.microsoft.com/vstudio

Page 4: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

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 5: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

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 6: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

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

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

Page 7: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and
Page 8: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

• Get StartedGet Started loads a page that contains a table listing loads a page that contains a table listing the names of recent the names of recent projectsprojects..

• What’s NewWhat’s New displays a page that lists new features displays a page that lists new features and updates for Visual Studio .NET. and updates for Visual Studio .NET.

•Online CommunityOnline Community links to online resources for links to online resources for contacting other software developers through contacting other software developers through newsgroups newsgroups and Web sites.and Web sites.

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

Page 9: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

• HeadlinesHeadlines provides a page for browsing news, provides a page for browsing news, articles and how-to guides.articles and how-to guides.

• Search Online Search Online to access more extensive information, to access more extensive information, users can select and begin browsing through the users can select and begin browsing through the MSDN MSDN ((Microsoft Developer NetworkMicrosoft Developer Network) online library, ) online library, which contains numerous articles, downloads and which contains numerous articles, downloads and tutorials on various technologies of interest to tutorials on various technologies of interest to Visual Studio .NET developers.Visual Studio .NET developers.

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

Page 10: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

• DownloadsDownloads displays a page that provides displays a page that provides programmers access to product updates, programmers access to product updates, code samples and reference materials. code samples and reference materials.

• The My ProfileThe My Profile link loads a page where users link loads a page where users can adjust and customize various Visual can adjust and customize various Visual Studio .NET settings, such as keyboard Studio .NET settings, such as keyboard schemes and window layout preferences.schemes and window layout preferences.

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

Page 11: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Programmers can browse the Web from the Programmers can browse the Web from the IDE using Internet Explorer (also called the IDE using Internet Explorer (also called the internal Web browserinternal Web browser in Visual Studio .NET). in Visual Studio .NET). To request a Web page, type its address into To request a Web page, type its address into the location bar and press the the location bar and press the Enter Enter key.key.

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

Page 12: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

• To create a new Visual C# program, click the To create a new Visual C# program, click the New ProjectNew Project button , which displays the button , which displays the New New Project dialog. Project dialog.

• The Visual Studio .NET IDE organizes The Visual Studio .NET IDE organizes programs into projects and programs into projects and solutionssolutions, which , which contain one or more projects.contain one or more projects.

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

Page 13: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and
Page 14: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

• 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 15: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Visual Studio .NetVisual Studio .Net

controls

designer

Properties,events

Page 16: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Menu Bar and Toolbar

Page 17: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

The programmer can access menu commands from The programmer can access menu commands from the the toolbartoolbar, which contains pictures, called , which contains pictures, called iconsicons, , that graphically represent commands.that graphically represent commands.

Positioning the mousePositioning the mouse pointer over an icon pointer over an icon displays a descriptiondisplays a description called a called a tool tiptool tip

Menu Bar and Toolbar

Page 18: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Visual Studio .NET IDE Windows

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

Page 19: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Demonstrating the auto-hide feature

Page 20: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

The solution explorer

Page 21: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

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

Page 22: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

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

Page 23: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Using Help

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

Page 24: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

Using Help – Dynamic Help

Page 25: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

In VS.NET the code you create is organized In VS.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 26: 2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and

• 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