Developing MS .NET Applications for Windows (Visual C# .NET) (M2555)
This five-day, instructor-led course provides you with the skills required to build Microsoft Windows Forms applications by using the Microsoft .NET Framework. This course is a part of the Microsoft Visual C# .NET curriculum and is intended to provide C# programmers with the skills required to create Windows Forms applications by using the .NET Framework. In this course, you will cover the major topics for Windows client application programming on the .NET Framework. These topics include: Windows Forms, GDI+, simple data access, interoperating with unmanaged code, threading and asynchronous programming issues, simple remoting, Web access, Web Services consumption, debugging, security, and deployment issues for desktop applications.
This course incorporates materials from the Official Microsoft Learning Products (OMLPs): 2555 Developing Microsoft .NET Applications for Windows (Visual C .NET).
What You'll Learn
- Create and populate Windows Forms
- Organize controls on Windows Forms
- Create menus in a Windows Forms application
- Add code to form and control event procedures in a Windows Forms application
- Create Multiple Document Interface (MDI) applications
- Use dialog boxes in Windows Forms applications
- Validate user input in a Windows Forms application
- Create and use user controls in a Windows Forms application
- Create licenses for controls
- Bind Windows Forms applications to various data sources by using Microsoft ADO.NET
- Consume XML Web services from Windows Forms applications
- Use .NET and COM components in a Windows Forms application
- Call Microsoft Win32 APIs from a Windows Forms application
- Print documents in a Windows Forms application
- Make asynchronous calls to methods from a Windows Forms application
- Debug a Windows Forms application
- Incorporate accessibility features in a Windows Forms application
- Localize a Windows Forms application
- Add support for Help to localize a Windows Forms application
- Create Help files in a Windows Forms application
- Deploy a Windows Forms application
- Implement code access and role-based security in a Windows Forms application
- Add deployment flexibility to applications by using shared assemblies
Who Needs to Attend
Intermediate programmers who are responsible for designing and building Windows-based applications with the .NET Framework
Developers who have C# development skills
Prerequisites
- Understanding of C# programming
- Experience building applications
- Experience with a .NET language such as Visual C# .NET or Microsoft Visual C++ .NET
- Experience developing basic applications with MFC and/or Microsoft Visual Basic 6.0
-
The ability to perform the following key activities:
- Help create functional specifications
- Design and develop user interfaces
- Create and test prototypes
- Write Windows Forms applications
- Following course or equivalent knowledge
- 8170 - Programming with C# (2124)
Follow-On Courses
There are no follow-ons for this course.
Course Outline
1. Introducing Windows Forms
- Creating a Form
- Adding Controls to a Form
- Creating an Inherited Form
- Organizing Controls on a Form
- Creating MDI Applications
2. Working with Controls
- Creating an Event Handler for a Control
- Using Windows Forms Controls
- Using Dialog Boxes in a Windows Forms Application
- Adding Controls at Run Time
- Creating Menus
- Validating User Input
3. Building Controls
- Extending and Creating Controls
- Adding Design-Time Support for Controls
- Licensing a Control
4. Using Data in Windows Forms Applications
- Adding ADO.NET Objects to and Configuring ADO.NET Objects in a Windows Forms Application
- Accessing and Modifying Data by Using DataSets
- Binding Data to Controls
- Overview of XML Web Services
- Creating a Simple XML Web Services Client
- Persisting Data
5. Interoperating with Managed Objects
- Using .NET and COM Components in a Windows Forms Application
- Calling Win32 APIs from Windows Forms Applications
6. Printing and Reporting in Windows Forms Applications
- Printing From a Windows Forms Application
- Using the Print Preview, Page Setup, and Print Dialogs
- Constructing Print Document Content by Using GDI+
- Creating Reports by Using Crystal Reports
7. Asynchronous Programming
- The .NET Asynchronous Programming Model
- The Asynchronous Programming Model Design Pattern
- How to Make Asynchronous Calls to Any Method
- Helping Protect State and Data in a Multithreaded Environment
8. Enhancing the Usability of Applications
- Adding Accessibility Features
- Adding Help to an Application
- Localizing an Application
9. Deploying Windows Forms Applications
- .NET Assemblies
- Deploying Windows Forms Applications
10. Securing Windows Forms Applications
- Security in the .NET Framework
- Using Code Access Security
- Using Role-Based Security
Labs
Lab 1. Creating Windows Forms
- Creating a New Windows Form
- Inheriting a New Form from an Existing Windows Form
Lab 2. Working with Controls
- Creating and Using Controls
Lab 3. Building Controls
- Declaring an Event and Raising It from an Extended Control
- Creating a Composite Control
- Adding Design-Time Support
- Create and validate licenses for controls.
Lab 4.1. Accessing Data with ADO.NET
- Generating and Populating DataSets
- Modifying a DataSet
- Updating a DataSet to a DataSource
- Binding and Formatting Data in Controls
Lab 4.2. Calling an XML Web Service
- Calling an XML Web Service
Lab 5. Interoperating with COM and Calling Win32 APIs
- Using a COM Component in a .NET-Based Application
- Calling Win32 APIs from a .NET-Based Application
Lab 6. Printing Formatted Documents
- Adding Print Support to an Application
- Creating Printed Output by Using GDI+
Lab 7. Making Asynchronous Calls to an XML Web Service
- Converting Synchronous Calls to Asynchronous Calls
Lab 8. Enhancing the Usability of an Application
- Adding Support for Accessibility
- Adding Help to an Application
- Adding ToolTips to an Application
- Localizing the User Interface of an Application
- Localizing Resources in an Application
Lab 9. Deploying an Application
- Building and Referencing a Strong-Named Assembly
- Installing a Strong-Named Assembly into the Global Assembly Cache
- Deploying a .NET Application
- Using an Application Configuration File
Canada [
