M2546
Core Windows Forms Technologies with Microsoft Visual Studio 2005
Microsoft Certified Technology Specialist (MCTS):
Microsoft .NET Framework 3.5 Windows Forms
Applications M2546 70-505
Workshop Title: Core Windows Forms Technologies with
Microsoft Visual Studio 2005
Workshop Code: M2546
Version: B
Level: 200
Duration: 3 Days
Workshop Overview
The Managing and Maintaining a Microsoft Windows Server 2003 Environment M2546 instructor-led training workshop has been designed to provide candidates with the necessary skills and knowledge required to develop Microsoft Windows Forms applications using Microsoft Visual Studio 2005. The workshop also focuses on user interfaces, programme structure, and implementation details.Target Audience
Candidates who should consider attending the M2546 Microsoft training workshop are corporate or independent software vendor (ISV) application developers who have a desire to learn more about specific technology areas in Windows application development.Workshop Objectives
On successfully completing the M2546 workshop candidates 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
Workshop Prerequisites
Candidates attending the M2546 Microsoft training workshop should be able to manage a solution environment using the Visual Studio 2005 integrated development environment (IDE) and tools and understand Microsoft .NET Framework 2.0 and the Common Language Runtime. Candidates are also required to be able to programme an application using a .NET Framework 2.0 compliant language, know how to make assemblies available to other applications and have a basic understanding of XML, including XML declaration, elements, attributes, and namespaces.Testing and Certification
The M2546 Microsoft training workshop is the recommended preparation for the 70-505 TS: Microsoft .NET Framework 3.5, Windows Forms Application Development exam.Workshop Content
Unit 1: Creating a Simple Windows Forms ApplicationIn this unit candidates will learn the fundamental skills required to create a simple Windows Forms application. The unit explains how to configure form properties, how to add controls to a form, 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
- Adding and Configuring Windows Forms and Controls
- Creating Event Handlers and Monitoring Events
- Adding Controls and Handlers at Run Time
- Adding a Form Keyboard Handler (if time permits)
- 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
Unit 2: Configuring Standard Controls
In this unit candidates will learn about many of the controls from the Visual Studio Toolbox. The unit teaches how to add and configure these controls and explains how to group them into different categories by function.
Lessons:
- Windows Forms Controls by Function
- Creating the EmployeeViewer Form
- Creating the ReportGenerator Form
- Creating the ReportGeneratorHelp Form
- 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
In this unit candidates will learn about the MenuStrip control and the ContextMenuStrip component. The unit explains how to create and configure form menus and context menus in an application and also deals with the ToolStripItems that can be added to the container of a MenuStrip or ContextMenuStrip.
Lessons:
- Menus in Windows Forms
- Creating and Configuring a MenuStrip Control
- Creating and Configuring a ContextMenuStrip Component
- Creating and Configuring a ContextMenuStrip Component
- Creating and Configuring a ToolStripComboBox (if time permits)
- 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
In this unit candidates will learn about the controls that can be used to display data from a data source. The unit shows how to use Visual Studio 2005 to create data sources and add data-bound controls to a form. The unit 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
- Adding a Data Source to a Project
- Binding Data to a Control
- Creating a Bound Form by Using the BindingSource and BindingNavigator Components
- Displaying Data by Using the DataGridView Control
- Binding to Data at Run Time (if time permits)
- 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
In this unit candidates will learn about 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. The unit shows how to add and configure the available user assistance controls to provide ToolTips, Help, and information about errors. Finally, the unit describes the accessibility features of Windows Forms and explains how to implement globalisation and localisation in an application.
Lessons:
- Providing User Assistance
- Implementing Accessibility Features
- Implementing Globalisation and Localisation
- Adding and Configuring User Assistance Controls
- Implementing Accessibility Features
- Implementing Globalisation and Localisation
- Running a Procedure at Set Intervals (if time permits)
- Displaying Data Source Errors (if time permits)
- 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 globalisation and localisation in a Windows Forms application
- Implement globalisation and localisation in a Windows Form
Unit 6: Creating Consistent Applications by Using Dialog Boxes and Forms Inheritance
In this unit candidates will learn about 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. The unit explains how to add and configure dialog boxes that enable users to open and save files and to set font and colour properties and also explains how to create and use a custom dialog box. In addition, the 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
- Adding and Configuring Dialog Box Components
- Creating a Custom Dialog Box
- Implementing Windows Forms Inheritance
- Modifying an Existing Form to Inherit from a Base Form (if time permits)
- 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
In this unit candidates will learn about the components that can be used to preview and print reports from a Windows Forms application. The unit covers the predefined dialog boxes that simplify the processes involved and 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
- Adding Print Capability to a Windows Forms Application
- Implementing Reporting by Using the CrystalReportViewer Component
- 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
In this unit candidates will learn about the main concepts of asynchronous programming and the BackgroundWorker component. The unit also explains how to work with the methods and events of the BackgroundWorker component to add asynchronous functionality to a Windows Forms application.
Lessons:
- Asynchronous Tasks in Windows Forms Applications
- Running and Cancelling a Background Process by Using the BackgroundWorker Component
- 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
In this unit candidates will learn how to deploy a Windows Forms application by using ClickOnce. The unit 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
- Publishing a ClickOnce Application
- Installing and Testing a ClickOnce Application
- 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

