本书以MCAD/MCSD认证考试为目标,内容涵盖了MCAD/MCSD核心考试70-306的所有考试要点,详细地介绍了MCAD/MCSD应试者所应该掌握的所有技能。\r\n 本书在介绍考试要点时针对每个考试目标,使用了大量的插图、表格、试验、测试等,使读者在牢固掌握知识点的同时,轻松地获得丰富的实践经验。\r\n 本书由具有丰富MCAD/MCSD认证培训经验的专家编写,是参加MCAD/MCSD认证考试人员的必备考试教材。本书也是一本很好的学习使用和管理Visual Basic .NET的参考书,还可以作为一些疑难问题的速查手册。
Part 1 Creating User Services\r\n\r\n1 Creating a Windows Form Using the Windows Forms Designer\r\n\r\nAdd and Set Properties on a Windows Form Create a Windows Form\r\nExercise 1-1:Building a Windows Form\r\nCreate a Windows Form Using Visual Inheritance\r\nExercise 1-2:Using Visual Inheritance\r\nBuild Graphical Interface Elements Using the System.Drawing Namespace\r\nExercise 1-3:Drawing with GDI+\r\nTwo-Minute Drill\r\nQ&A Self Test\r\nSelfTest Answers\r\n\r\n2 Adding Controls to a Windows Form\r\n\r\nSet Properties on Controls\r\nWorking with Anchor and Dock Properties\r\nExercise 2-1:Using the Anchor and Dock Properties\r\nLoad Controls Dynamically\r\nExercise 2-2:Dynamically Adding Controls to a Form\r\nWrite Code to Handle Control Events and Add the Code to a Control\r\nExercise 2-3:Adding Events to Controls\r\nInstantiate and Invoke and ActiveX Control\r\nExercise 2-4:Addign ActiveX Controls to a Windows\r\nForm Project\r\nCreate Menus and Menu Items\r\nCreating Menus\r\nBuilding a MainMenu\r\nBuilding a ContextMenu\r\nCode Components of Menus\r\nExercise 2-5:Building a MainMenu and ContextMenu\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\n3 Implementing Navigation,Accessibility,and Printing Capabilites\r\nConfigure the Order of Tabs\r\nExercise 3-1:Changing the Tab Order of Controls\r\nInplement Navigation for the User Interface(UI)\r\nExercise 3-2:Adding Keyboard Navigation to a Form\r\nImplement Print Capability\r\nExercise 3-3:Printing Shapes with the PrintDocument\r\nComponent\r\nImplement Accessibility Features\r\nAccessibility Properties\r\nOther Properties Affecting Accessibility\r\nAdditional Tips\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\n4 Validating User Imput\r\n\r\nUsing Validation Functions\r\nAdding Validation to Components\r\nExercise 4-1:Performing Date and Numeric Validation\r\nResponding to Validation Errors\r\nExercise 4-2:Checking Data in the Validating Event\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\n5 Implementing Error Handling in the UI\r\n\r\nRaise and Handle Errors\r\nExercise 5-1:Using the Try...End Try Statement\r\nCreate and Implement Custom Error Handlers\r\nExercise 5-2:Coding the When Clause\r\nCreate and Implement Custom Error Messages\r\nExercise 5-3:Catching Subclasses of the Exception Object\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\n6 Implementing Online User Assistance\r\n\r\nImplement Online User Assistance\r\nProviding Help Through Tooltips\r\nUsing The HelpProvider Control\r\nDisplaying Help with a Help Button\r\nExercise 6-1:Adding Help to a Windows Form\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\n7 Incorporating Existing Code into Applications\r\n\r\nIncorporate Existing Code into a Microsoft Windows-Based\r\nApplication\r\nVisual Basic .NET Upgrade Wizard\r\nData Type Changes\r\nLocal Variables Inside Code Blocks\r\nArrays\r\nProcedures\r\nWEnd vs.End While\r\nFile I/O\r\nElimination of Legacy Code\r\nControls\r\nExercise 7-1:Upgrading a Visual Basic 6.0 Application\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\n8 Displaying and Updating Data\r\n\r\nTransform and Filter Data\r\nExercise 8-1:Retrieving Rows from an Access Database\r\nBnd Data to the User Interface\r\nExercise 8-2:Building a Form with Data-Bound Controls\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\n9 Instantiating and Invoking Web Services and Components\r\n\r\nInstantiate and Invoke a Web Service\r\nHow to Write a Web Service\r\nExercise 9-1:Build a Web Service\r\nHow to Use a Web Service\r\nExercise 9-2:Create a Proxy for the Web Service\r\nInstantiate and Invoke a COM or COM+Component\r\nExercise 9-3:Use a COM Component\r\nInstantiate and Invoke a .NET Component\r\nExercise 9-4:Create a .NET Component\r\nExercise 9-5:Use a .NET Component\r\nCall Native Functions by Using Platform Invoke\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nSelfTest Answers\r\n\r\n10 Implementing Globalization\r\n\r\nLocalization Background\r\nImplement Localizability for the UI\r\nExercise 10-1:The Rapid Applicatin Development Approach to Localization\r\nExercise 10-2:Manually Build Resources and a Form Convert Existing Encodings\r\nImplement Right-to-Left and Left-to-Right Mirroring\r\nPropare Culture-Specific Formatting\r\nExercise 10-3:Culture-Specific Formatting\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nSelfTest Answers\r\n\r\n11 Creating,Implementing ,and Handling Events\r\n\r\nAsynchronous Programming\r\nHandling Events\r\nDelegates\r\nCallbacks\r\nExercise 11-1:Asynchronous Processing\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nSelfTest Answers\r\n\r\nPart II Creating and Managing Components and .NET Assemblies\r\n\r\n12 Creating and Modifying a .NET Assembly\r\n\r\nAssemblies Overview\r\nKeyFeatures of .NET Assemblies\r\nAssembly Scope\r\nWorking with PE Files\r\nAssembly Manifest\r\nAssembly Configurations\r\nCreating a .NET Assembly\r\nCreating MSIL Code Assembiles\r\nCreating a Single-File Assembly with Visual Studio .NET\r\nExercise 12-1:Creating a Single-File Assembly with Visual Studio .NET\r\nCreating a Multifile Assembly on the Command Line\r\nExercise 12-2: Using the Command Line to Create a Multifile Assembly\r\nCreating Resources and Satellite Assembiles\r\nCreating Resources and Satellite Assembiles with Visual Studio .NET\r\nExercise 12-3:Implementing Resources and Creating a Satellite Assembly\r\nCommand-Line Resources\r\nModifying Resource Files\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nSelfTest Answers\r\n\r\n13 Creating a Windows Control\r\n\r\nWindows Forms Controls\r\nInheriting from the Control Class\r\nInheriting from a Windows Forms Control\r\nThe UserControl Class\r\nWeb Forms Controls\r\nCreating a Control\r\nServer-Side Control Rendering\r\nAdding Properties,Methods,and Events\r\nWorking with Postbacks\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\nPart III Consuming and Manipulating Data\r\n\r\n14 Using Ad Hoc Queries and Stored Procedures\r\n\r\nADO.NET Overview\r\n.NET Data Providers\r\nThe DataSet Object\r\nBuilding and Executing Ad Hoc Queries\r\nUsing a SqlDataReader\r\nExercise 14-1:Creating and Ad Hoc Query Using a SqlDataReader\r\nUsing a DataSet\r\nExercise 14-2:Creating and Ad Hoc Query Using a DataSet Working with SQL Server Stored Procedures\r\nCreating a Stored Procedure with Transact-SQL\r\nCalling Stored Procedures\r\nCreating Parameters for a Stored Procedure\r\nExercise 14-3:Creating Parameters for a Stored Procedure\r\nCalling a Stored Procedure with Parameters\r\nExercise 14-4:Calling a Stored Procedure with Parameters\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nSelfTest Answers\r\n\r\n15 Working with Data Stores\r\n\r\nWorking with Relational Databases\r\n.NET Data Prociders\r\nDataSet Objects\r\nHandling Data Errors\r\nExercise 15-1:Working with Relational Databases\r\nUsing LOEDB\r\nWorking with XML Documents\r\nXML .NET Namespaces\r\nUsing XmlDocument\r\nUsing XmlDataDocument\r\nGenerating XSD Schemas\r\nUsing XmlSerializer\r\nUsing XslTransform\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nSelfTest Answers\r\n\r\nPart IV\r\n\r\nTesting and Debugging\r\n\r\n16 Testing Your Application\r\n\r\nPlanning the Testing Phase\r\nDeveloping the Test Plan\r\nDeveloping Test Cases\r\nManaging Defects\r\nTesting Strategies\r\nUnit Testing\r\nFunctional Testing\r\nIntegration Testing\r\nSystem Testing\r\nAcceptance Testing\r\nRegression Testing\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\n17 Implementing Tracing and Resolving Code Defects\r\n\r\nAnatomy of a Software Bug\r\nHow Visual Basic .NET Handles Errors\r\nVisual Studio .NET's Debugging Tools\r\nConfiguring the Environment\r\nDebugging at Run Time\r\nCustomizing Breakpoints\r\nCommands Available in Break Mode\r\nWatching Your Program in Action\r\nThe Autos and Locals Windows\r\nUnderstanding the Call Stack\r\nTechniques for Debugging\r\nApplying Debugging Code to Components and Applications\r\nOption Explicit and Option Strict\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\nPart V Depolying a Windows-Based Application\r\n\r\n18 Planning a Windows-Based Application Deployment\r\n\r\nWindows Logo Program Overview\r\nWindows XP Logo Requirements\r\nDesigned for Windows XP-Optimized Requirements\r\nApplying for the Program\r\nWindows Installer Overview\r\nFeatures of the Windows Installer Service\r\nCreating an Installation Database\r\nPlanning Physical Deployment\r\n.NET Framework Deployment\r\nPlanning a Network-Based Deplyment\r\nPlanning a Deployment that Uses Removable Media\r\nPlanning a Web-Based Deployment\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nSelfTest Answers\r\n\r\n19 Creating Setup Programs and Working with the Global Assembly Cache\r\n\r\nUsing Setup and Deployment Projects\r\nExercise 19-1:Creating a Sample Installer for a Windows-Based Application\r\nUnderstanding s Setup Project\r\nRegistering Components and Assemblies\r\nRegistering .NET Components for Use by COM Components\r\nRegistering .NET Serviced Components for Use with COM+ Applications and Services\r\nRegistering COM Components for Use with .NET Applications\r\nPerforming and Install-Time Compilation of a Windows-Based Application\r\nAdding Assemblies to the Global Assembly Cache\r\nVerifying Security Poilcies for a Deployed Application\r\nLaunching a Remote Application with URL Remoting\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nSelfTest Answers\r\n\r\nPart VI\r\n\r\nMaintaining and Supporting a Windows-Based Application\r\n\r\n20 Optimizing Windows-Based Application Performance\r\n\r\nOverview of Performance and Optimization\r\nCommon Language Runtime(CLR)Technologies\r\nOverview of the CLR\r\nJIT\r\nGarbage Collection\r\nThread Management\r\nTechniques for Improving Performance\r\nData Structures\r\nJIT\r\nBoxing and Unboxing\r\nText Handling\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\nPart VII configuring and Secering a Windows-Based Application\r\n\r\n21 Securing and Authorizing Windows-Based Applications\r\n\r\nCode Access Security\r\nAuthentication\r\nRole-Based Authentication\r\nWindows-Based Authentication\r\nForms-Based Authentication\r\nPassport Authentication\r\nTwo-Minute Drill\r\nQ&A SelfTest\r\nLab Question\r\nSelfTest Answers\r\nLab Answer\r\n\r\nPart VIII Appendixes\r\n\r\nA About the CD\r\n\r\nSystem Requirements\r\nLearnKey Online Training\r\nInstalling and Running MasterExam and MasterSim\r\nMasterExam\r\nMasterSim\r\nElectronic Book\r\nHelp\r\nRemoving Installations(s)\r\nTechnical Support\r\nLearnKey Technical Support\r\n\r\nB Exam 70-306 Certification Objective Mapping\r\n\r\nIndex
This book was written to assist you in preparing for and passing the Developing and implementing Windows Applications with Microsoft Visual Basic .NET and Microsoft Visual Studio .NET Exam 70-306. The text and exercises were created to help familiarize you with the topics you will be tested on during the actual exam.
In This Book
While this book is designed to be a focused exam preparation tool, you will also find discussion of the theory and methodologies behind working with the .NET Framework. The hands-on exercises were designed to give you additional experience with the .NET Framework while reinforcing the understanding of the concepts.
In Every Chapter
The Study Guide series contains a number of chapter elements that were designed to help you identify important items, reinforce key points, and offer expert tips for taking the exam. Each chapter contains the following:
Certification Objectives Each chapter begins with a listing of the exam objectives that will be covered in the chapter.
Exam Watch These are tips from our expert authors designed to help you focus your studies on areas that will be important for the exam.
Practice Exercises Hands-on experience is a key factor to success on exam day and these practice exercises are designed to help you reinforce your skills. It's important that you work through these exercises rather than simply reading them, so that you increase your exposure and familiarity to the .NET Framework.
On the Job Designed to let you benefit from our authors experience, this element provides insights into the practical application of the theories presented in the text.
Scenario and Solutions This element provides you with common situations which you may encounter on the job, and provides you with the quick solution.
The Certification Summary This is a general review of the material that was presented in the chapter. These summaries provide a quick-review option prior to taking the exam.
The Two-Minute Drill At the end of every chapter, you will find a listing of the key objective points from the chapter. These are great as a final review study tool.
The Self Test Our self-assessment section presents questions similar to those you'll find on the actual exam, and is designed to help you identify those areas in which you may need additional study. Complete answers with explanations are located at the end of each chapter.
Lab Questions Lab questions are designed to give you practice in evaluating a scenario and developing the appropriate solution. You'll find these throughout the text.
On the CD-ROM
This book includes a CD-ROM with simulation assessment and training software. Be sure to look through the software-there is more than one hour of interactive instructional video training, hundreds of practice test questions found only on the CD-ROM. The CD-ROM with this book also contains the code for many of the exercises so that it's not necessary for you to re-create the code from scratch, and the Glossary for the book. These features can only be accessed through the CD-ROM. For more information about the CD-ROM, please see Appendix A.