What's New

The Wait for Visual Studio 2008 is Over!

One may picture, too, the sudden shifting of the attention, the swiftly spreading coils and bellyings of that blackness advancing headlong,...

Core Windows Forms Technologies with Microsoft Visual Studio 2005

Core Windows Forms Technologies with Microsoft Visual Studio 2005

Workshop 2546: Three days; Instructor-Led

 

Introduction

 

This three-day instructor-led workshop provides students with the knowledge and skills to develop Microsoft( Windows( Forms applications using Microsoft Visual Studio( 2005. The workshop focuses on user interfaces, program structure, and implementation details.

 

Audience

 

This workshop is intended for corporate or independent software vendor (ISV) application developers who have a desire to learn more about specific technology areas in Windows application development.

 

At Workshop Completion

 

After completing this workshop, students will be able to:

 

Create a simple Windows Forms application.

Configure standard controls.

Build menus.

Display and edit data by using data-bound controls.

Provide user assistance and enhance usability.

Create consistent applications by using dialogs and forms inheritance.

Add print and report functionality to a Windows Forms application.

Perform asynchronous tasks by using the BackgroundWorker component.

Deploy a Windows Forms application by using ClickOnce.

 

Prerequisites

 

Before attending this workshop, students must:

 

Be able to manage a solution environment using the Visual Studio 2005 integrated development environment (IDE) and tools

Understand Microsoft .NET Framework 2.0 and the Common Language Runtime

Be able to program an application using a .NET Framework 2.0 compliant language

Know how to make assemblies available to other applications

Have a basic understanding of XML, including XML declaration, elements, attributes, and namespaces.

 

 

Course Outline

 

Unit 1: Creating a Simple Windows Forms Application

 

This unit introduces the fundamental skills required to create a simple Windows Forms application. It explains how to configure form properties and how to add controls to a form. It also deals with events and explains how to create event handlers at design time and run time.

 

Lessons

 

Components of a Windows Forms User Interface

Event Handling in a Windows Forms Application

 

Lab 1: Creating a Simple Windows Forms Application

 

Exercise 1. Adding and Configuring Windows Forms and Controls

Exercise 2. Creating Event Handlers and Monitoring Events

Exercise 3. Adding Controls and Handlers at Run Time

Exercise 4. Adding a Form Keyboard Handler (if time permits)

 

After completing this unit, students will be able to:

 

Describe the various components of a Windows Forms application.

Explain how to handle events in a Windows Forms application.

Add and configure Windows Forms and controls.

Create event handlers and monitor events.

Add controls and handlers to a form at run time.

Apply best practices when designing forms.

 

Unit 2: Configuring Standard Controls

 

This unit introduces many of the controls from the Visual Studio Toolbox. It teaches how to add and configure these controls and explains how to group them into different categories by function.

 

Lesson

 

Windows Forms Controls by Function

 

Lab 2: Configuring Standard Controls

 

Exercise 1. Creating the EmployeeViewer Form

Exercise 2. Creating the ReportGenerator Form

Exercise 3. Creating the ReportGeneratorHelp Form

 

After completing this unit, students will be able to:

 

Explain the functions of the major categories of Windows Forms controls.

Create a form to select and view images by using the SplitContainer, TreeView, PictureBox, ToolStrip, and other controls.

Create a form to specify report criteria by using the TableLayoutPanel, ListView, MonthCalendar, ComboBox, and other controls.

Create a form to view a Hypertext Markup Language (HTML) Help file by using a WebBrowser control.

 

Unit 3: Building Menus

 

This unit introduces the MenuStrip control and the ContextMenuStrip component. It explains how to create and configure form menus and context menus in an application. It also deals with the ToolStripItems that can be added to the container of a MenuStrip or ContextMenuStrip.

 

Lesson

 

Menus in Windows Forms

 

Lab 3: Building Menus

 

Exercise 1. Creating and Configuring a MenuStrip Control

Exercise 2. Creating and Configuring a ContextMenuStrip Component

Exercise 3. Hiding and Disabling a ToolStripMenuItem

Exercise 4. Creating and Configuring a ToolStripComboBox (if time permits)

 

After completing this unit, students will be able to:

 

Explain the structure of a menu in a Windows Forms application.

Create and configure a MenuStrip control.

Create and configure a ContextMenuStrip component.

Hide and disable a ToolStripMenuItem.

Apply best practices for menu design and development.

 

Unit 4: Displaying and Editing Data by Using Data-Bound Controls

 

This unit introduces the controls that can be used to display data from a data source. It shows how to use Visual Studio 2005 to create data sources and add data-bound controls to a form. It also demonstrates how to use the DataGridView control to display and update data retrieved by using a data source.

Lessons

 

Binding Data to a Control

DataGridView Control

 

Lab 4: Displaying and Editing Data by Using Data-Bound Controls

 

Exercise 1. Adding a Data Source to a Project

Exercise 2. Binding Data to a Control

Exercise 3. Creating a Bound Form by Using the BindingSource and BindingNavigator Components

Exercise 4. Displaying Data by Using the DataGridView Control

Exercise 5. Binding to Data at Run Time (if time permits)

 

After completing this unit, students will be able to:

 

Explain simple and complex data binding.

Describe the scenarios in which the DataGridView control is used.

Add a data source to a project.

Bind data to a control at run time.

Use the BindingSource component and BindingNavigator control to create a data-bound Windows Form.

Use the DataGridView control to display and update tabular data from a data source.

 

Unit 5: Providing User Assistance and Enhancing Usability

 

This unit introduces many of the controls and techniques that can be used to create an application that is flexible and intuitive and that provides timely feedback to the user. It shows how to add and configure the available user assistance controls to provide ToolTips, Help, and information about errors. It also describes the accessibility features of Windows Forms and explains how to implement globalization and localization in an application.

 

Lessons

 

Providing User Assistance

Implementing Accessibility Features

Implementing Globalization and Localization

 

Lab 5: Providing User Assistance and Enhancing Usability

 

Exercise 1. Adding and Configuring User Assistance Controls

Exercise 2. Implementing Accessibility Features

Exercise 3. Implementing Globalization and Localization

Exercise 4. Running a Procedure at Set Intervals (if time permits)

Exercise 5. Displaying Data Source Errors (if time permits)

 

After completing this unit, students will be able to:

 

Describe the components that can be used to provide user assistance.

Add and configure user assistance controls on a Windows Form.

Explain the accessibility features available to implement in a Windows Forms application.

Implement accessibility features within a Windows Forms application.

Explain the high-level processes involved in globalization and localization in a Windows Forms application.

Implement globalization and localization in a Windows Form.

 

Unit 6: Creating Consistent Applications by Using Dialog Boxes and Forms Inheritance

 

This unit introduces the built-in dialog boxes that can be used to prompt users when they are performing common tasks and to provide users with a familiar interface. It explains how to add and configure dialog boxes that enable users to open and save files and to set font and color properties. This unit also explains how to create and use a custom dialog box. In addition, this unit explains the concept of forms inheritance and describes how to create a consistent interface for Windows Forms applications.

 

Lessons

 

Dialog Boxes in a Windows Forms Application

Windows Forms Inheritance

 

Lab 6: Creating Consistent Applications by Using Dialog Boxes and Forms Inheritance

 

Exercise 1. Adding and Configuring Dialog Box Components

Exercise 2. Creating a Custom Dialog Box

Exercise 3. Implementing Windows Forms Inheritance

Exercise 4. Modifying an Existing Form to Inherit from a Base Form (if time permits)

 

After completing this unit, students will be able to:

 

Describe the various standard preconfigured dialog boxes available to a Windows Forms application.

Explain the concept of Windows Forms inheritance and the reasons for using inheritance.

Add and configure dialog box controls on a Windows Form.

Create a custom dialog box.

Implement Windows Forms inheritance.

 

Unit 7: Printing Content and Creating Reports

 

This unit provides an introduction to the components that can be used to preview and print reports from a Windows Forms application. This unit covers the predefined dialog boxes that simplify the processes involved, and it explains how to use these dialog boxes to retrieve print settings and page setup options from the user.

In addition, this unit explains how to display a report in a Windows Forms application by using the CrystalReportViewer component

 

Lessons

 

Printing in a Windows Forms Application

Reporting in a Windows Forms Application

 

Lab 7: Printing Content and Creating Reports

 

Exercise 1. Adding Print Capability to a Windows Forms Application

Exercise 2. Implementing Reporting by Using the CrystalReportViewer Component

 

After completing this unit, students will be able to:

 

Explain how to print a report in a Windows Forms application.

Describe how to create and view reports in a Windows Forms application.

Use the components provided with Visual Studio 2005 to add print capability to a Windows Forms application.

Display a Crystal report by using the CrystalReportViewer component.

 

Unit 8: Performing Asynchronous Tasks by Using the BackgroundWorker Component

 

This unit introduces the main concepts of asynchronous programming and then focuses on the BackgroundWorker component. It explains how to work with the methods and events of the BackgroundWorker component to add asynchronous functionality to a Windows Forms application.

 

Lesson

 

Asynchronous Tasks in Windows Forms Applications

 

Lab 8: Performing Asynchronous Tasks by Using the BackgroundWorker Component

 

Exercise 1. Running and Canceling a Background Process by Using the BackgroundWorker Component

After completing this unit, students will be able to:

 

Explain the concepts and processes involved in asynchronous programming.

Run and cancel a background process by using the BackgroundWorker component.

Describe best practices for using the BackgroundWorker component.

 

Unit 9: Deploying Applications by Using ClickOnce

 

This unit explains how to deploy a Windows Forms application by using ClickOnce. It covers the steps required to prepare, publish, install, and test an application. Finally, this unit explains how to update an application and how to use the automatic update feature of ClickOnce.

 

Lessons

 

Windows Forms Application Deployment Options

ClickOnce Technology Overview

 

Lab 9: Deploying Applications by Using ClickOnce

 

Exercise 1. Publishing a ClickOnce Application

Exercise 2. Installing and Testing a ClickOnce Application

 

After completing this unit, students will be able to:

 

Explain the options for deploying a Windows Forms application.

Explain the key concepts of ClickOnce technology.

Publish a ClickOnce application.

Install and test a ClickOnce application.

Describe best practices for using ClickOnce deployment.

 

he pu�'#eo�8�Zts.

 

Describe the components of a Web Part page and identify scenarios when Web Part pages are useful features of Web applications.

Describe the more advanced features of Web Parts, including connections between Web Parts.

Create Web Part pages.

Create Web Parts.

Create connected Web Parts.

 

�Z ^p>

Describe the Cache object and explain how you can use it to store and manage state data.

Configure ViewState properties and ControlState properties for Web server controls.

Store and retrieve Application and Session state.

Implement out-of-process session state.

Store and manage state data in the Cache object.

 

Unit 6: Accessing and Displaying Data

This unit describes how to add database connections to the Web.Config file and the benefits that this approach adds when building manageable Web applications. This unit then describes the new data controls for accessing data in a variety of formats. It includes details about using the SqlDataSource control, the XmlDataSource control, and the ObjectDataSource control. This unit also describes how user interface data controls are bound to the data source controls, and it includes a discussion about binding data-aware standard controls to data.

Lessons

Database Connections and the Web.Config File

Relational Data and Data Source Controls

XML Data and Data Source Controls

Object Data and Data Source Controls

Lab 6: Accessing and Displaying Data

Exercise 1: Creating and Retrieving Database Connections

Exercise 2: Accessing Data by Using SqlDataSource Controls and Data Controls

Exercise 3: Accessing Objects as Data with ObjectDataSource Controls

Exercise 4: Accessing XML Data by Using XmlDataSource Controls

After completing this unit, students will be able to:

Explain how to store and retrieve database connections by using the Web.Config file.

Explain how to use data source controls to access relational data.

Explain how to use data source controls to access XML data.

Explain how to use data source controls to access object data.

Create and retrieve database connections by using the Web.Config file.

Access relational data by using the SqlDataSource control and data controls.

Access XML data by using the XmlDataSource control and data controls.

Access objects as data by using the ObjectDataSource control and data controls.

 

Unit 7: Controlling Access to a Web Application

This unit describes authentication and authorization for Web applications. It also shows how to develop login, sign-up, and other membership pages for Web applications based on the ASP.NET 2.0 Membership system.

Lessons

Authentication for Web Applications

Authorization for Web Applications

Site Membership Systems Using the Membership Class

Web Site Security Administration Using the Roles Class

Lab 7: Controlling Access to a Web Application

Exercise 1: Configuring Authentication and Authorization for a Web Application

Exercise 2: Implementing a Membership Registration Page

Exercise 3: Implementing a Login Page and Adding Login Controls

Exercise 4: Creating a Membership Management Administrative User Interface

After completing this unit, students will be able to:

Describe the authentication methods for Web applications.

Describe the authorization methods for Web applications.

Describe the main components of a membership system.

Describe how to build a security administration interface.

Configure authentication and authorization for a Web application.

Implement a membership registration page.

Implement a login page.

Create a membership management administrative user interface.

 

Unit 8: Deploying a Web Application

This unit describes three different ways to deploy Web applications:

Using the Copy Web Site utility to deploy a Web application in a non-compiled state

Using the Publish Web Site utility to deploy a precompiled version of the Web application

Building Microsoft Windows( Installer packages to create a redistributable application with full setup logic

Lessons

The Copy Web Site Utility

The Publish Web Site Utility

Windows Installer Setup Packages

Lab 8: Deploying a Web Application

Exercise 1. Deploying a Web Application by Using the Copy Web Site Utility

Exercise 2. Precompiling and Deploying a Web Application by Using the Publish Web Site Utility

Exercise 3. Building a Windows Installer Package for Deploying a Web Application

After completing this unit, students will be able to:

Describe how to use the Copy Web Site utility to deploy a Web application.

Describe how to use the Publish Web Site utility to precompile and deploy a Web application.

Describe how to build Windows Installer packages for deploying a Web application.

Deploy a Web application by using the Copy Web Site utility.

Precompile and deploy a Web application by using the Publish Web Site utility.

Build and run a Windows Installer setup application for deploying a Web application.

 

Unit 9: Making Web Applications Available to Mobile Devices

This unit explains how to enable browsers running on mobile devices, such as Pocket PCs and mobile phones, to access pages within your application.

Lessons

Device Emulators for Mobile Web Forms

Mobile Device Detection and Redirection

Mobile Web Forms

Device-Specific Features in Mobile Web Forms

Lab 9: Making Web Applications Available to Mobile Devices

Exercise 1. Managing Redirection for Mobile Devices

Exercise 2. Designing and Implementing a Mobile Web Form

Exercise 3. Designing Device-Specific Features for a Mobile Web Application

Exercise 4. Browsing a Mobile Web Application with Specific Device Emulators

After completing this unit, students will be able to:

Explain how to detect mobile devices and redirect them to an appropriate page in a Web application.

Describe mobile Web pages, forms, and mobile controls.

Explain how to use device-specific features in mobile Web pages to respond to the different capabilities of mobile devices.

Explain how to use device emulators in Visual Studio 2005 to test mobile Web pages.

Design and implement mobile Web forms.

Design device-specific features for mobile Web pages.

 

AttachmentSize
2546.pdf0 bytes
Code: 
2546
Duration: 
3
Price: 
4500000
Schedule: 
18-20 Jan, 1-3 Feb, 14-16 Mar, 11-13 Apr