Chapter 2: Getting Started
description
Transcript of Chapter 2: Getting Started
Chapter 2: Getting Started
AY 2012-2013
2
Overview• Lesson1: Introduction to .NET and the .NET Framework • Lesson2: Exploring Visual Studio .NET • Lesson3: Creating a Windows Application Project
Use Visual Studio .NET
Access Data
Write Code
Create Interface
Debugand Deploy
3
Lesson1: Introduction to .NET and the .NET Framework• What Is the .NET Platform?• What Is the .NET Framework?• How the .NET Framework Works
4
What Is the .NET Platform?
XML Web Services
Devices
Servers
User Experiences
Developer Tools
.NET platform components
5
Multimedia: Introduction to Microsoft.NET
6
What Is the .NET Framework?
Operating System
Common Language Runtime
.NET Framework Class Library
ADO.NET, Windows forms, ASP.NET, Globalization, Security
Programming Languages
7
How the .NET Framework Works
.NET Framework
Common Language Runtime
Class Library
Windows
Web Services
ADO.NETData Types
Visual Basic Applications
Visual C# Applications
Visual C++ Applications
Programming Services
.NET Platform
Code
Source code compiles as MSIL
JIT compiler producesmachine language
MSIL: Microsoft Intermediate Language JIT :just-in-time
8
Multimedia: Introduction to the .NET Framework
9
Lesson2: Exploring Visual Studio .NET• Programming Features of Visual Studio .NET• Structure of Visual Studio Solutions and Projects• The Development Process
10
Programming Features of Visual Studio .NET
One-stop Application Development
Visual Studio .NET
Design Develop Debug Deploy
Data AccessXML WebServices Tools
WindowsForms Tools
Web Forms Tools
Error Handling
MultipleLanguages
11
Structure of Visual Studio Solutions and Projects• Solution
A container for the projects and solution items that can be built into an application
A solution usually contains one or more related projects
• Project A container within a solution to
logically manage, build, and debug the project items that make up your application
12
The Development Process
Create a design specification
Create the user interface
Set properties for the user interface objects
Write code to add functionality
Test and debug the application
Make an executable file
Create a setup application
13
Lesson3: Creating a Windows Application Project• What Is an Application Template? • How to Use the Windows Forms Designer• How to Use the Properties Window
14
What Is an Application Template?• Provides starter files, project structure, and environment
settings
15
How to Use the Windows Forms Designer
Controls to createthe user interface
Windows Forms Designer
Solution Explorer
Properties
16
How to Use the Properties Window
Set properties suchas size, caption,and color
17
Practice: Creating a Basic Windows Application
In this practice, you will create a basic Windows application
Hands-on Practice
18
Q & A