Module 1: Introducing Windows FormsTake a closer look: Download Module 1 (Portable Document Format, 1.31 MB).
The following topics are covered in this module:
Lessons
- Creating a Form
- Adding Controls to a Form
- Creating an Inherited Form
- Organizing Controls on a Form
- Creating MDI Applications
Lab 1.1: Creating Windows Forms
- Creating a New Windows Form
- Inheriting a New Form from an Existing Windows Form
After completing this module, students will be able to:
- Create a form and add controls to it.
- Create an inherited form by using Visual Inheritance.
- Organize controls on a form.
- Create Multiple Document Interface (MDI) applications.
Module 2: Working with Controls
Take a closer look: Download Module 2 (Portable Document Format, 1.21 MB).
This module explains how to create event procedures (handlers) in your application that will run in response to user actions. Students will learn how to add programming logic to the event procedures of a control, how to use the Windows Forms intrinsic controls, dialog boxes, and menus, and how to validate the data entered by users of your application.
Lessons
- 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
Lab 2.1: Working with Controls
- Creating and Using Controls
After completing this module, students will be able to:
- Create an event handler for a control.
- Select and use the appropriate controls in a Windows Forms application.
- Use dialog boxes in a Windows Forms application.
- Add controls to a form at run time.
- Create and use menus in a Windows Forms application.
- Validate user input in a Windows Forms application.
Module 3: Building Controls
This module explains how to extend the functionality of an existing Windows control, combine multiple existing controls into a composite control, and build a new custom control. Students will also learn how to add design-time licensing support to a control.
Lessons
- Extending and Creating Controls
- Adding Design-Time Support for Controls
- Licensing a Control
Lab 3.1: Building Controls
- Declare an Event and Raising It from an Extended Control
- Creating a Composite Control
- Adding Design-Time Support
After completing this module, students will be able to:
- Extend an existing control.
- Create a composite control by combining functionality of several existing Windows Forms controls.
- Describe the design-time support options for components provided by Visual Studio .NET.
- Add attributes that provide information to the Visual Designer.
- Create and validate licenses for controls.
Module 4: Using Data in Windows Forms Applications
This module explains how to bind Windows forms to various data sources by using ADO .NET. Students will learn about binding Windows forms to data from sources such as databases and
XML files. Students will get an overview of the XML Web services programming model and learn how to create applications that use XML Web services. The module also provides an overview of how to persist data to and read data from files and isolated storage.
Lessons
- 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
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
After completing this module, students will be able to:
- Describe the objects in the ADO.NET object model.
- Add and configure ADO.NET objects in a Windows Forms application.
-
Access and modify data from a database by using DataSets.
- Bind data to controls.
- Describe the XML Web services model and the roles of HTML, SOAP, and XML in the XML Web services model.
- Create and test a simple XML Web service client application.