Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating a Windows Application Project in Visual Studio

Similar presentations


Presentation on theme: "Creating a Windows Application Project in Visual Studio"— Presentation transcript:

1 Creating a Windows Application Project in Visual Studio
Lesson 2

2 Objectives

3 Windows Form Application
To begin a Windows Forms Application, create a Windows Forms Application project. Once created, you can explore the basic structure and parts. To initiate the creation of a Windows Forms Application, you can use any one of the following methods: The Start Page The File->New menu The New Project toolbar button All three of these methods will open the same New Project dialog where you will select your project type and create a Windows Forms Application.

4 New Project Dialog By default, Visual Studio will associate your new project with the version of the .NET Framework indicated by the .NET Framework selection button located in the upper-right corner of New Project dialog. You can use the .NET Framework selection button to change the version of the .NET Framework your application will use.

5 Windows Forms Application
The Properties window displays the property keys and property values for various parts of the Windows Forms Application project. The Solution Explorer window contains a hierarchical view of all the files, folders, and Solution specific information within the application. The Windows Form Designer is a What You See Is What You Get (WYSIWYG) editor for creating and managing Windows Forms. The Program.cs file is a Solution file that contains the starting point for the Windows Forms Application.

6 Windows Forms Application

7 Code View

8 Windows Presentation Foundation Application
Visual Studio provides one WPF Application project type, but the same project type can be used to create either a WPF Navigation application or a WPF application. In addition to standard windows applications, the Windows Presentation Foundation (WPF) Application project type introduced built-in functionality for creating navigation or wizard-like applications. All WPF Application projects are capable of using the navigation functionality, but the navigation functionality works better when a WPF Application is designed to function as a step-by-step process.

9 WPF Navigation Application
Navigation Buttons

10 New Projects Dialog The New Project dialog provides all of the interactions required to create a default WPF Application. To convert your WPF Application to a WPF Navigation Application, there are a few steps and some code changes, but the conversion process is also straight forward.

11 Windows Service Application
Visual Studio provides one Windows Service Application project type. Much like the Windows Forms Application project and the WPF Application Project, the Windows Service Application project is created using the New Project dialog.

12 Windows Service Application Common Project Features
Solution references contain the System.ServiceProcess element, which is required for a Windows Service Application. The Service Views consists of two different editors: the Service Designer View and the Windows Service Application Make most of your changes in the Windows Service Code View where you will edit the source code behind the Service. The Program.cs file indicates which Service will start the application or any functionality that you want to execute before the first Service is loaded.

13 Service Designer

14 Control Toolbox

15 Computer Management Console
Service Name

16 Summary You learned how to create a new Windows Forms Application and explored the most common elements of that Windows Forms Application. You learned how to create a new WPF Application and a WPF Navigation Application and explored the most common elements of that WPF Application. You learned how to create a new Windows Service Application and explored the most common elements of that Windows Service Application.


Download ppt "Creating a Windows Application Project in Visual Studio"

Similar presentations


Ads by Google