Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET)

710 351 1
Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET)

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Part Number: X08-82484 Course Number: 2565A Released: 05/2002 Delivery Guide Developing Microsoft ® .NET Applications for Windows ® (Visual Basic ® .NET) Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property.  2002 Microsoft Corporation. All rights reserved. Microsoft, MS-DOS, Windows, Windows NT, Active X, Authenticode, FrontPage, IntelliSense, MSDN, PowerPoint, Visual Basic, Visual C#, Visual Studio, Win32, Windows, Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Course Number: 2565A Part Number: X08-82484 Released: 05/2002 Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) iii Contents Introduction Introduction 1 Course Materials 2 Prerequisites .3 Course Outline .4 Demonstration: Expense Report Application .6 Demonstration: Purchase Order Application .9 Microsoft Certified Professional Program .15 Facilities .17 Module 1: Introducing Windows Forms Overview 1 Lesson: Creating a Form 2 Lesson: Adding Controls to a Form .17 Lesson: Creating an Inherited Form .26 Lesson: Organizing Controls on a Form 35 Lesson: Creating MDI Applications 43 Review .52 Lab 1.1: Creating Windows Forms 54 Module 2: Working with Controls Overview 1 Lesson: Creating an Event Handler for a Control 2 Lesson: Using Windows Forms Controls 12 Lesson: Using Dialog Boxes in a Windows Forms Application 33 Lesson: Adding Controls at Run Time 42 Lesson: Creating Menus 48 Lesson: Validating User Input .58 Review .66 Lab 2.1: Working with Controls 68 Module 3: Building Controls Overview 1 Lesson: Extending and Creating Controls 2 Lesson: Adding Design-Time Support for Controls 18 Lesson: Licensing a Control 26 Review .37 Lab 3.1: Building Controls 39 iv Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) Module 4: Using Data in Windows Forms Applications Overview . 1 Lesson: Adding ADO.NET Objects to and Configuring ADO.NET Objects in a Windows Forms Application 2 Lesson: Accessing and Modifying Data by Using DataSets . 14 Lesson: Binding Data to Controls . 33 Lab 4.1: Accessing Data by Using ADO.NET 47 Lesson: Overview of XML Web Services 59 Lesson: Creating a Simple XML Web Services Client . 65 Lesson: Persisting Data . 73 Lab 4.2: Calling an XML Web Service 84 Review 88 Module 5: Interoperating with Managed Objects Overview . 1 Lesson: Using .NET and COM Components in a Windows Forms Application 2 Lesson: Calling Win32 APIs from Windows Forms Applications . 16 Lesson: Upgrading Visual Basic 6.0 Applications to Visual Basic .NET . 29 Review 36 Lab 5.1: Interoperating with COM and Calling Win32 APIs . 39 Module 6: Printing and Reporting in Windows Forms Applications Overview . 1 Lesson: Printing from a Windows Forms Application 2 Lesson: Using the Print Preview, Page Setup, and Print Dialogs . 15 Lesson: Constructing Print Document Content by Using GDI+ . 31 Lesson: Creating Reports by Using Crystal Reports . 46 Review 54 Lab 6.1: Printing Formatted Documents . 56 Module 7: Asynchronous Programming Overview . 1 Lesson: The .NET Asynchronous Programming Model . 2 Lesson: The Asynchronous Programming Model Design Pattern 7 Lesson: How to Make Asynchronous Calls to Any Method . 19 Lesson: Protecting State and Data in a Multithreaded Environment 27 Review 33 Lab 7.1: Making Asynchronous Calls to an XML Web Service . 35 Module 8: Enhancing the Usability of Applications Overview . 1 Lesson: Adding Accessibility Features . 2 Lesson: Adding Help to an Application 9 Lesson: Localizing an Application 21 Review 34 Lab 8.1: Enhancing the Usability of an Application . 37 Course Evaluation . 53 Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) v Module 9: Deploying Windows Forms Applications Overview 1 Lesson: .NET Assemblies 2 Lesson: Deploying Windows Forms Applications 24 Review .46 Lab 9.1: Deploying an Application 48 Module 10: Securing Windows Forms Applications Overview 1 Lesson: Security in the .NET Framework 2 Lesson: Using Code Access Security .14 Lesson: Using Role-Based Security .29 Review .40 Lab 10.1: Adding and Testing Permission Requests .42 Course Evaluation 46 Appendix A: Using Filled Shapes and Images Overview 1 Lesson: Creating Brushes and Filled Shapes .2 Lesson: Working with Bitmap Images .15 Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) vii About This Course This section provides you with a brief description of the course, audience, suggested prerequisites, and course objectives. Windows Forms is the new platform for Microsoft ® Windows ® application development, based on the Microsoft .NET Framework. The .NET Framework provides a clear, object-oriented, extensible set of classes that enables developers to develop rich Windows Forms applications. Additionally, Windows Forms can act as the local user interface in a multi-tier distributed solution. This three-day instructor-led course provides students with the skills required to build Windows Forms applications by using the .NET Framework. This course is intended for the intermediate programmer who is responsible for designing and building Windows Forms applications by using the .NET Framework. It is designed for developers who have Microsoft Visual Basic ® .NET development skills. Typically, these individuals perform the following key activities: ! Help with creation of functional specifications ! Design and develop user interfaces ! Create and test prototypes ! Write Windows Forms applications This course requires that students meet the following prerequisites: ! Experience with a .NET Framework language such as Visual Basic .NET Microsoft MSDN ® Training Course 2559A: Introduction to Visual Basic .NET Programming with Microsoft .NET will help students gain basic skills in Visual Basic .NET programming techniques and meet the prerequisites for this course. ! Experience developing applications with Visual Basic 6 Description Audience Student prerequisites viii Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) After completing this course, the student will be able to: ! 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 dialogs 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. ! Upgrade Visual Basic 6.0 applications to Visual Basic .NET. ! 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. Course objectives Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) ix Course Timing The following schedule is an estimate of the course timing. Your timing may vary. Day 1 Start End Module 9:00 9:30 Introduction 9:30 11:00 Module 1: Introducing Windows Forms 11:00 11:10 Break 11:10 11:40 Lab 1.1: Creating Windows Forms 11:40 12:30 Lunch 12:30 2:30 Module 2: Working with Controls 2:30 2:45 Break 2:45 3:15 Lab 2.1: Working with Controls 3:15 4:15 Module 3: Building Controls 4:15 4:45 Lab 3.1: Building Controls Day 2 Start End Module 8:30 9:00 Day 1 review 9:00 11:00 Module 4: Using Data in Windows Forms Applications 11:00 11:15 Break 11:15 11:45 Module 4: Using Data in Windows Forms Applications (continued) 11:45 12:30 Lab 4.1: Accessing Data by Using ADO.NET 12:30 1:00 Lunch 1:00 1:30 Module 4: Using Data in Windows Forms Applications (continued) 1:30 1:45 Lab 4.2: Calling an XML Web Service 1:45 2:00 Break 2:00 3:00 Module 5: Interoperating with Managed Objects 3:00 3:30 Lab 5.1: Interoperating with COM and Calling Win32 APIs 3:30 5:00 Module 6: Printing and Reporting in Windows Forms Applications 5:00 5:45 Lab 6.1: Printing Formatted Documents x Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) Day 3 Start End Module 8:30 10:00 Module 7: Asynchronous Programming 10:00 10:15 Lab 7.1: Making Asynchronous Calls to an XML Web Service 10:15 10:30 Break 10:30 11:30 Module 8: Enhancing the Usability of Applications 11:30 12:15 Lunch 12:15 12:45 Lab 8.1: Enhancing the Usability of an Application 12:45 2:45 Module 9: Deploying Windows Forms Applications 2:45 3:00 Break 3:00 3:30 Lab 9.1: Deploying an Application 3:30 4:45 Module 10: Securing Windows Forms Applications 4:45 5:15 Lab 10.1: Adding and Testing Permission Requests [...]... students with an overview of the course content, materials, and logistics for Course 2565A, Developing Microsoft NET Applications for Windows® (Visual Basic® NET) Required materials To teach this course, you need the following materials: ! Delivery Guide ! Trainer Materials compact disc How to Teach This Module This section contains information that will help you to teach this module Introduction Welcome... Interoperating with Managed Objects ! Module 6: Reporting and Printing in Windows Forms Applications ! Module 7: Asynchronous Programming ! Module 8: Enhancing the Usability of Applications ! Module 9: Deploying Windows Forms Applications ! Module 10: Securing Windows Forms Applications *****************************ILLEGAL FOR NON-TRAINER USE****************************** Module 5, “Interoperating with... Default.htm or Autorun.exe ! Wordview This folder contains the Word Viewer that is used to view any Microsoft Word document (.doc) files that are included on the compact disc Developing Microsoft® NET Applications for Windows® (Visual Basic® NET) xiii Document Conventions The following conventions are used in course materials to distinguish elements of the text Convention Use Bold Represents commands, command.. .Developing Microsoft® NET Applications for Windows® (Visual Basic® NET) xi Trainer Materials Compact Disc Contents The Trainer Materials compact disc contains the following files and folders: ! Autorun.exe When the compact disc is... *****************************ILLEGAL FOR NON-TRAINER USE****************************** Module 1, “Introducing Windows Forms,” introduces Windows Forms and controls, which are part of the Microsoft NET Framework It explains how to create and populate base forms and inherited forms by using Microsoft Visual Studio® NET It also covers organizing controls on a form and creating Multiple Document Interface (MDI) applications This... required to view the course Web page To open the Web page, open Windows Explorer, and in the root directory of the compact disc, double-click Default.htm or Autorun.exe xii Developing Microsoft® NET Applications for Windows® (Visual Basic® NET) Student Materials Compact Disc Contents The Student Materials compact disc contains the following files and folders: ! Autorun.exe When the compact disc is inserted... configure and deploy your Windows Forms applications Module 10, “Securing Windows Forms Applications, ” explains how to use the security features in the NET Framework in Windows Forms applications 6 Introduction Demonstration: Expense Report Application In this demonstration, you will see how to use the Expense Report application *****************************ILLEGAL FOR NON-TRAINER USE******************************... reports or retrieve information about reports that do not reside on their local computer Introduction 7 3 Describe the user interface The user interface of the client application consists of several forms The main control panel form for the Business application will display a Logon form in its Load event handler 4 Log on to the application Specify mario for the user name and P@ssw0rd for the password After... and COM components in your Windows Forms application You will also learn how to call Microsoft Win32® APIs in your Windows Forms application The module also covers upgrading Microsoft Visual Basic 6.0 applications to Visual Basic NET by using the Upgrade Wizard Module 6, “Reporting and Printing in Windows Forms Applications, ” explains how to create reports in a Windows Forms application by using Crystal... screens The Logon form is displayed when an employee chooses to refresh data and the EmployeeID is unknown The form is also displayed when the user chooses to change their identity by using the Option menu on MainForm 4 Open the Options form Introduction Users can change the employee information of the Purchase Order application and can also turn the sound effects on or off The Options form includes two . Windows Forms Applications 5:00 5:45 Lab 6.1: Printing Formatted Documents x Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) Day. Evaluation . 53 Developing Microsoft® .NET Applications for Windows® (Visual Basic® .NET) v Module 9: Deploying Windows Forms Applications Overview 1

Ngày đăng: 04/11/2013, 13:15

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan