About this course

Course type Performance Plus
Course code QASMTNET-35
Duration 5 Days

The Microsoft .NET Framework provides very rich support for the development of 'smart client' applications using Windows Forms 3.5. This latest version of Windows Forms is one of the most powerful, yet easy to use, platforms for creating compelling Windows applications. With rich support for data binding, upgraded layout and localisation features, support for multithreading and Microsoft Office-style tool- and menu-strip controls, you will be producing great looking, feature rich and responsive applications in record time.

ClickOnce deployment technology also makes it a snap to get your applications installed; overcoming one of the most common complaints levelled at Windows programs.

This course will provide you with the skills necessary to create a modern Windows application, providing you with comprehensive coverage of this exciting technology.

Target Audience:

This course is ideal for Developers and Team Leaders who will be using Windows Forms 3.5 and the Microsoft .NET Framework to write and deploy Windows applications.

Prerequisites

  • Delegates should already have experience of using the C# or Visual Basic .NET programming languages, which can be gained by attending either of the following courses: The C# Programming Language (www.qa.com/QACSHPL-35) or The Visual Basic 2008 Programming Language (www.qa.com/QAVBNPL-35)
  • Knowledge of GUI programming, using technologies such as Visual Basic 6, Microsoft Foundation Classes (MFC) or Windows Forms 1 would be an advantage, but it is not required

Delegates will learn how to

At the end of this course you will be able to:

  • Use Microsoft Visual Studio 2008 to create Windows Forms 3.5 applications
  • Configure and deploy an application using ClickOnce deployment
  • Work with the new menu- and tool-strip controls
  • Use ADO, LINQ and data binding techniques to minimise the amount of code needed to create data-driven applications
  • Use GDI to create great looking controls and printed output
  • Manipulate and utilise application and user settings within their programs
  • Create Windows Forms applications that work correctly with multiple threads of execution
  • Go beyond the RAD features of Microsoft Visual Studio 2008 to create scalable and maintainable Windows Forms applications
  • Explain how Windows Forms relates to Windows Presentation Foundation

Outline

Module 1: Hello, Windows Forms

  • Fundamentals of Windows Programming
  • Building your first form; Adding controls
  • Handling basic events; Displaying a MessageBox
  • Overview of the Windows Forms controls
  • Creating a Windows Forms application using Microsoft Visual Studio 2008

Module 2: Menus and Toolbars

  • Creating menus with the MenuStrip
  • Using the ToolStrip; Adding context menus
  • Docking with ToolStripContainer
  • Using a StatusStrip

Module 3: Working with Forms

  • Creating forms; Form ownership
  • Hiding and showing forms
  • Critical Form events
  • Laying out controls
  • Tab and z-order
  • Anchoring and docking
  • TableLayoutPanel
  • GridLayoutPanel
  • Automatic sizing and scaling
  • Visual Inheritance
  • Multiple Document Interface (MDI) applications

Module 4: Dialog Boxes

  • Creating modal forms
  • Using the common dialog boxes
  • Implementing a tabbed dialog
  • Exchanging data with forms
  • Adding custom events to forms
  • Validation techniques
  • Using the ErrorProvider control
  • Form-level validation
  • Context sensitive help and the HelpProvider

Module 5: Managing Settings

  • Saving and loading settings
  • Preserving form and control layouts
  • Application and per-user settings
  • Supporting roaming users

Module 6: Resources and Localisation

  • Using resources
  • Globalisation
  • Localisation
  • Satellite assemblies
  • Creating internationalisable applications

Module 7: Beyond RAD

  • The Application object
  • Controlling application instancing
  • Implementing Model-view-controller
  • Singleton forms
  • Implementing Command pattern
  • Handling exceptions on the UI thread

Module 8: Data Binding

  • Simple data binding
  • Complex data binding
  • Data binding using Microsoft Visual Studio 2008
  • Working with different binding sources
  • Data views; Sorting and Filtering
  • The DataGridView control
  • Designing types to support data binding

Module 9: ADO.NET and LINQ

  • The ADO.NET managed providers
  • DataSets and DataAdapters
  • The DataReader
  • Configuring ASP.NET applications to use ADO.NET
  • LINQ syntax
  • Object Relational Designer and LINQ to SQL

Module 10: Working with Web Services

  • Locating and calling a Web Service
  • Working with proxies and security credentials
  • Asynchronous Web Service invocations

Module 11: Asynchronous Programming

  • Multithreading and the Windows user interface
  • Understanding ISynchroniseInvoke
  • Using a secondary thread
  • Using the BackgroundWorker component
  • Using timers

Module 12: Components and Controls

  • What is a component?
  • Creating a custom component
  • Creating a custom control
  • Introduction to design time integration

Module 13: Drawing

  • Introducing GDI
  • Painting forms and controls
  • Using GDI primitives correctly
  • Brushes, pens and fonts; Drawing text
  • Filling and drawing shapes
  • Applying transformations
  • Double buffering
  • Performance

Module 14: Printing

  • Print documents
  • Print controllers
  • Working with common printer dialogs
  • Implementing print preview

Module 15: Working with ClickOnce Deployment

  • Versioning and rollback
  • Controlling ClickOnce programmatically
  • Trust, Code Access Security (CAS) and ClickOnce
  • Integrating with the shell

Module 16: Windows Presentation Foundation

  • Introducing Windows Presentation Foundation

Module 17: Review

  • Course review; Further resources

Examinations

This course will assist delegates preparing for the following exams:

  • Microsoft .NET Framework 2.0 - Windows-Based Client Development (70-526)

Recommended follow-on courses

For enterprise developers, where the windows application is the 'front-end' of a complex architecture, the following course is recommended:

Performance Plus

5 Days

Duration
Microsoft Visual Studio
Delivery Method

Delivery method

Classroom

Face-to-face learning in the comfort of our quality nationwide centres, with free refreshments and Wi-Fi.

Find dates and prices

Online booking is currently not available for this course, to find out more please call us on 0345 074 7998 or email us at info@qa.com to discuss how we can help.

Trusted, awarded and accredited

Fully accredited to ensure we provide the highest possible standards in learning

All third party trademark rights acknowledged.