Wrox beginning VB dot NET 2003 apr 2004 ISBN 0764556584

484 55 0
Wrox beginning VB dot NET 2003 apr 2004 ISBN 0764556584

Đ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

Team LiB Beginning VB NET 2003 ISBN:0764556584 by Thearon Willis, Jonathan C rossland and Richard Blair Wrox Press © 2004 The authors of this text guide you through the basics of building working applications, creating windows and boxes, handling unexpected events, using object-oriented programming, and more Table of Contents Beginning VB.NET 2003 Introduction C hapter - Welcome to Visual Basic NET C hapter - The Microsoft NET Framework C hapter - Writing Software C hapter - C ontrolling the Flow C hapter - Working with Data Structures C hapter - Building Windows Applications C hapter - Displaying Dialog Boxes C hapter - C reating Menus C hapter - Debugging and Error Handling C hapter 10 - Building Objects C hapter 11 - Advanced Object-Oriented Techniques C hapter 12 - Building C lass Libraries C hapter 13 - C reating Your Own C ustom C ontrols C hapter 14 - Programming C ustom Graphics C hapter 15 - Accessing Databases C hapter 16 - Database Programming with SQL Server and ADO.NET C hapter 17 - Web Forms C hapter 18 - C reating Web Server C ontrols C hapter 19 - Visual Basic NET and XML C hapter 20 - Web Services and NET Remoting C hapter 21 - Deploying Your Application C hapter 22 - Building Mobile Applications Appendix A - Where to Now? Appendix B - Architecture and Design Patterns Appendix C - An Introduction to C ode Security Appendix D - Exercise Answers Appendix E - Differences Between NET Framework Versions 1.0 and 1.1 Index List of Figures List of Tables Team LiB Team LiB Back Cover Three expert authors guide you through the basics of building working applications, creating windows and boxes, handling unexpected events, using objectoriented programming, and more You’ll learn to use menus, toolbars, dialog boxes, and other controls in Windows applications, and how loops and branching structures function in decision-making You will get a thorough overview of object-oriented programming concepts and theory After mastering these levels, you’ll be able to explore database programming, look into creating ASP.NET applications for the Web using Web forms, and get a basic introduction to SML Finally, you can discover how functionality offered online can be integrated seamlessly into your applications with Web services What you will learn from this book Programming basics, how VB NET functions, and the principles of the NET Framework How to work with data structures and build and deploy windows applications Object-oriented programming concepts and theory Debugging and error-handling techniques What you need to know about Web services and NET remoting How to build class libraries, create your own custom controls, and program custom graphics Database programming with SQL Server and ADO.NET A basic understanding of mobile applications and how to build them About the Authors Thearon Willis, currently works as a senior consultant and develops intranet applications using ASP.NET, DHTML, XML, JavaScript, Visual Basic Script, VB C OM components, and SQL Server Over the years, Thearon has worked on a variety of systems from mainframe to client-server development Jonathan C rossland, is a co-author of Professional Windows DNA, Professional VB.NET, and Beginning VB.NET He is currently working at Yokogawa Electric C orporation in the UK, where he is happily involved with the creation of software for the Batch manufacturing industry Jonathan has been working in and out of various software technologies for eight years now, and spend most of his time in C # and ASP.NET Jonathan also works with Visual Basic, Visual Basic NET, and Web technologies such as JavaScript, DHTML, XML, ASP, and Web Services Richard D Blair (MC SD, MSC D.NET) was a Senior Solutions Developer/Architect for Empowered Software Solutions, Inc (ESS) ESS is a C hicago-based consulting firm and a Microsoft Gold C ertified Partner in e-C ommerce During his 14 years of experience, Richard helped clients streamline the electronic business process, expand access to vital information, and create usable systems Besides his consulting work, he also co-authored Professional ASP XML, Beginning VB.NET, Professional VB.NET, and served as Technical Reviewer on Professional Design Patterns with VB.NET, all published by Wrox Press He also presented at DevDays99, the Wrox Developers C onferences, was an invited "Ask the Expert" at the Visual Studio NET launch event in C hicago, and presented Visual Basic NET 2003 at the launch events in Milwaukee and Indianapolis Richard had a dual concentration bachelor's degree from the University of Michigan in English Literature and Theatre Team LiB Team LiB Beginning VB.NET 2003 Thearon Willis Jonathan Crossland Richard D Blair WILEY Wiley Publishing, Inc Published by Wiley Publishing, Inc 10475 Crosspoint Boulevard Indianapolis, IN 46256 http://www.wiley.com Copyright © 2004 Wiley Publishing, Inc., Indianapolis, Indiana Published simultaneously in Canada 0-7645-5658-4 10987654321 No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600 Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing, Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4447, E-Mail: permcoordinator@wiley.com LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY: WHILE THE PUBLISHER AND AUTHOR HAVE USED THEIR BEST EFFORTS IN PREPARING THIS BOOK, THEY MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTATIVES OR WRITTEN SALES MATERIALS THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR YOUR SITUATION YOU SHOULD CONSULT WITH A PROFESSIONAL WHERE APPROPRIATE NEITHER THE PUBLISHER NOR AUTHOR SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER DAMAGES For general information on our other products and services or to obtain technical support, please contact our Customer Care Department within the U.S at (800) 762-2974, outside the U.S at (317) 572-3993 or fax (317) 572-4002 Wiley also publishes its books in a variety of electronic formats Some content that appears in print may not be available in electronic books Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer and related trade dress are trademarks or registered trademarks of John Wiley & Sons, Inc and/or its affiliates, in the United States and other countries, and may not be used without written permission All other trademarks are the property of their respective owners Wiley Publishing, Inc., is not associated with any product or vendor mentioned in this book About the Authors Thearon Willis Thearon Willis, currently works as a senior consultant and develops intranet applications using ASP.NET, DHTML, XML, JavaScript, Visual Basic Script, VB COM components, and SQL Server Over the years, Thearon has worked on a variety of systems from mainframe to client-server development Jonathan Crossland Jonathan Crossland, is a co-author of Professional Windows DNA, Professional VB.NET, and Beginning VB.NET He is currently working at Yokogawa Electric Corporation in the UK, where he is happily involved with the creation of software for the Batch manufacturing industry Jonathan has been working in and out of various software technologies for eight years now, and spend most of his time in C# and ASP.NET Jonathan also works with Visual Basic, Visual Basic NET, and Web technologies such as JavaScript, DHTML, XML, ASP, and Web Services Richard D Blair Richard D Blair (MCSD, MSCD.NET) was a Senior Solutions Developer/Architect for Empowered Software Solutions, Inc (ESS) ESS is a Chicago-based consulting firm and a Microsoft Gold Certified Partner in e-Commerce During his 14 years of experience, Richard helped clients streamline the electronic business process, expand access to vital information, and create usable systems Besides his consulting work, he also co-authored Professional ASP XML, Beginning VB.NET, Professional VB.NET, and served as Technical Reviewer on Professional Design Patterns with VB.NET, all published by Wrox Press He also presented at DevDays99, the Wrox Developers Conferences, was an invited "Ask the Expert" at the Visual Studio NET launch event in Chicago, and presented Visual Basic NET 2003 at the launch events in Milwaukee and Indianapolis Richard had a dual concentration bachelor's degree from the University of Michigan in English Literature and Theatre So not only was he a Software Architect, he could play one on TV Richard D Blair July 29, 1966 to December 29, 2003 Credits Authors Thearon Willis Jonathan Crossland Richard D Blair Senior Acquisitions Editor Katie Mohr Development Editor Sydney Jones Production Editor Vincent Kunkemueller Technical Editor Todd Meister Copy Editor TechBooks Senior Production Manager Fred Bernardi Editorial Manager Mary Beth Wakefield Vice President & Executive Group Publisher Richard Swadley Vice President and Executive Publisher Robert Ipsen Vice President and Publisher Joseph B Wikert Executive Editorial Director Mary Bednarek Proofreading and Indexing TECHBOOKS Production Services Team LiB Team LiB Introduction Visual Basic NET is Microsoft's latest version of the highly popular Visual Basic, a product based on the easy-to-learn BASIC language Visual Basic NET's strength lies in its ease of use and the speed at which you can put together your own applications for the Windows operating system In the past, Visual Basic has been used largely to create applications with a rich user interface including buttons, lists, and drop-down boxes In this book, we will show you how to incorporate these things into your applications, and also show you where we think the future of programming for Windows will be With the introduction of Microsoft's NET Framework there has never been a more exciting time to learn Visual Basic For the first time, Visual Basic programmers have access to full objectorientation in their programs, a powerful technique for handling errors that arise and the ability to incorporate programs that exist on the Internet into their applications Exciting times indeed! This book will give you a thorough grounding in the basics of programming using Visual Basic NET; from there the world is your oyster Who Is This Book For? This book is designed to teach you how to write useful programs in Visual Basic NET as quickly and easily as possible There are two kinds of beginners for whom this book is ideal: You're a beginner to programming and you've chosen Visual Basic NET as the place to start That's a great choice! Visual Basic NET is not only easy to learn, it's also fun to use and very powerful You can program in another language but you're a beginner to NET programming Again, you've made a great choice! Whether you've come from Fortran or Visual Basic 6, you'll find that this book quickly gets you up to speed on what you need to know to get the best from Visual Basic NET Team LiB Team LiB What Does This Book Cover? Visual Basic NET offers a great deal of functionality in both tools and language No book could ever cover Visual Basic NET in its entirety—you would need a library of books What this book aims to is to get you started as quickly and easily as possible It shows you the roadmap, so to speak, of what there is and where to go Once we've taught you the basics of creating working applications (creating the windows and boxes, how your code should handle unexpected events, what object-oriented programming is, and how to use it in your applications, and so on) we'll show you some of the areas you might want to try your hand at next: Chapters 15 and 16 provide a taster of programming with databases and so cover Access, SQL Server, and ADO.NET Chapter 17 discusses how to use Web forms to create your own ASP.NET applications for the Web Chapter 18 provides a brief introduction to XML; a powerful tool for integrating your applications with others—regardless of the language they were written in Chapter 19 introduces you to Web services, a technology whereby functionality offered on the Internet can be accessed by your applications and seamlessly integrated into them Team LiB Team LiB What Do I Need to Run Visual Basic NET? Apart from a willingness to learn, all you'll need for the first 14 chapters are a PC running Windows 2000, XP, or NT4 Server, Internet Explorer, and of course: Microsoft Visual Studio NET or Microsoft Visual Basic NET Standard Edition As the later chapters cover more advanced subject areas, you will need further software to get the best out of them: Chapter 15 requires Microsoft Access 2000 For Chapter 16, you will need to have access to SQL Server or SQL Server 2000 If you don't have the full version of SQL Server 2000, you can use MSDE (Microsoft Data Engine) instead MSDE is a cut-down version of SQL Server A version compatible with SQL Server is available with Office 2000 Professional and Premium editions and a version compatible with SQL Server 2000 is available with Office XP The big difference between MSDE and the full version of SQL Server is that MSDE does not have a user interface—the good news is that this difference has no impact on the exercises in Chapter 16 Chapters 17 and 19 rely on ASP.NET technology so you will need IIS (which comes with Windows 2000 and Windows XP) Don't worry if you don't have these products already and want to wait a while before you purchase them You should still find that you get a lot out of this book Team LiB Team LiB Conventions We've used a number of different styles of text and layout in this book to help differentiate between the different kinds of information Here are examples of the styles we used and an explanation of what they mean Try It Out: How Do They Work? Each step has a number Follow the steps through Then read How It Works to find out what's going on Important These boxes hold important, not-to-be forgotten, mission-critical details that are directly relevant to the surrounding text Note Background information, asides, and references appear in text like this Bullets appear indented, with each new bullet marked as follows: Words that appear on the screen or in menus such as the File or Window, are in a similar casing to the one you would see on a Windows desktop Keys that you press on the keyboard such as Ctrl and Enter, are in italics Code has several styles If it's a word that we're talking about in the text—for example, when discussing a For … Next loop, it's in this font.Ifit's a block of code that can be typed as a program and run, then it's also in a gray box: Private Sub btnAdd_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnAdd.Click Dim n As Integer n = 27 MessageBox.Show(n) End Sub Sometimes we'll see code in a mixture of styles, like this: Private Sub btnAdd_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnAdd.Click Dim n As Integer n = 27 n = n + MessageBox.Show(n) End Sub In cases like this, the code with a white background is the code we are already familiar with; the line highlighted in gray is a new addition to the code since we last looked at it Team LiB Team LiB Customer Support We always value hearing from our readers, and we want to know what you think about this book: what you liked, what you didn't like, and what you think we can better next time You can send us your comments by e-mail to feedback@wrox.com Please be sure to mention the book title in your message How to Download the Sample Code for the Book When you visit the Wrox site, http://www.wrox.com/, simply locate the title through our Search facility or by using one of the title lists Click on Download in the Code column or on Download Code on the book's detail page The files that are available for download from our site have been archived using WinZip When you have saved the attachments to a folder on your hard drive, you need to extract the files using a de-compression program such as WinZip or PKUnzip When you extract the files, the code is usually extracted into chapter folders When you start the extraction process ensure that your software (WinZip or PKUnzip) is set to use folder names Errata We've made every effort to make sure that there are no errors in the text or in the code However, no one is perfect and mistakes occur If you find an error in one of our books, like a spelling mistake or a faulty piece of code, we would be very grateful to have your feedback By sending in errata, you may save another reader from hours of frustration, and of course, you will be helping us provide even higher quality information Simply e-mail the information to support@wrox.com; your information will be checked and if correct, posted to the errata page for that title or used in subsequent editions of the book To find errata on the Web site, go to http://www.wrox.com/, and simply locate the title through our Advanced Search or title list Click on the Book Errata link, which is below the cover graphic on the book's detail page E-mail Support If you wish to directly query a problem in the book with an expert who knows the book in detail then e-mail support@wrox.com, with the title of the book and the last four numbers of the ISBN in the subject field of the e-mail A typical e-mail should include the following things: The title of the book, last four digits of the ISBN (6584), and page number of the problem in the Subject field Your name, contact information, and the problem in the body of the message We won't send you junk mail We need the details to save your time and ours When you send an e-mail message, it will go through the following chain of support: Customer Support—Your message is delivered to our customer support staff, who are the first people to read it They have files on most frequently asked questions and will answer anything general about the book or the Web site immediately Editorial—Deeper queries are forwarded to the technical editor responsible for that book They have experience with the programming language or particular product and are able to answer detailed technical questions on the subject The Authors—Finally, in the unlikely event that the editor cannot answer your problem, they will forward the request to the author We try to protect the author from any distractions to their writing; however, we are quite happy to forward specific requests to them All Wrox authors help with the support on their books They will e-mail the customer and the editor with their response, and again all readers should benefit The Wrox Support process can only offer support to issues that are directly pertinent to the content of our published title Support for questions that fall outside the scope of normal book support, is provided via the community lists of our http://p2p.wrox.com/forum http://p2p.wrox.com For author and peer discussion join the P2P mailing lists Our unique system provides programmer to programmer contact on mailing lists, forums, and newsgroups, all in addition to our oneto-one e-mail support system If you post a query to P2P, you can be confident that it is being examined by many Wrox authors and other industry experts who are present on our mailing lists At http://p2p.wrox.com you will find a number of different lists that will help you, not only while you read this book, but also as you develop your own applications Particularly appropriate to this book are the beginning_vb and vb_dotnet lists To subscribe to a mailing list just follow these steps: Go to http://p2p.wrox.com/ Choose the appropriate category from the left menu bar Click on the mailing list you wish to join Follow the instructions to subscribe and fill in your e-mail address and password Reply to the confirmation e-mail you receive Use the subscription manager to join more lists and set your e-mail preferences Why This System Offers the Best Support You can choose to join the mailing lists or you can receive them as a weekly digest If you don't have the time, or facility, to receive the mailing list, you can search our online archives Junk and spam mails are deleted and your own e-mail address is protected by the unique Lyris system Queries about joining or leaving lists, and any other general queries about lists, should be sent to listsupport@p2p.wrox.com Team LiB Team LiB Chapter 1: Welcome to Visual Basic NET Overview The goal of this third edition is to help you come up to speed with the Visual Basic NET language even if you have never programmed anything before You will start slowly, and build on what you learn So take a deep breath, let it out slowly, and tell yourself you can this No sweat! No kidding! Programming a computer is a lot like teaching a child to tie their shoes Until you find the correct way of giving the instructions, not much gets accomplished Visual Basic NET is a language in which you can tell your computer how to things But like a child, the computer will only understand if you explain things very clearly If you have never programmed before, this sounds like an arduous task, and sometimes it is However, Visual Basic NET gives you a simple language to explain some complex things Although it never hurts to have an understanding of what is happening at the lowest levels, Visual Basic NET frees the programmer from having to deal with the mundane complexities of writing Windows programs You are free to concentrate on solving problems Visual Basic NET helps you create solutions that run on the Microsoft Windows operating system If you are looking at this book, you might have already felt the need or the desire to create such programs Even if you have never written a computer program before, as you progress through the Try It Outs in this book, you will become familiar with the various aspects of the Visual Basic NET language, as well as its foundation in Microsoft's NET Framework You will find that it is not nearly as difficult as you have been imagining Before you know it, you will be feeling quite comfortable creating a variety of different types of programs with Visual Basic NET Also, as the name implies, Visual Basic NET can be used to create applications for use over the Internet and newly incorporated into Visual Studio NET 2003 for its ability to create smart device applications (Pocket PCs and SmartPhones) However, while learning any new technology, you have to walk before you can run, so you begin by focusing on Windows applications before extending your boundaries to other platforms Team LiB images, finding, 198 implementation, 204 responding to, 204-205 separators, adding, 198 showing/hiding, 282 Standard, 17, 18, 30 types of, 17 Toolbox See also specific controls accessing, 23 contents, 23 defined, 20 user controls added to, 430 Tools menu, 17 ToString method, 71, 156, 319, 320, 354 ToUpper method, 210, 297 TrackBar control adding, 391 double-click, 143, 393 Name property, 142, 392 Value property, 392 Try… Catch, 712 Try… Catch… Finally statement, 316-317 Type object, 655 Team LiB Team LiB Index U UML See Unified Modeling Language Undo method, 275 Unified Modeling Language (UML) defined, 420 diagrams, 420 resource, 421 symbol libraries, 420 Uniformed Resource Locators (URIs), 714 UPDATE statement, 578 UpdateCurrentAddress method, 661 UpdateMenu method, 486 Uppercase button, 208-210 UppercaseText method, 208, 210 User class, 396 User Control, 630-631 user controls See also controls adding, 430 creating, 428-430 events, exposing, 433-434 methods, exposing, 432 owner-draw, 454 project creation with, 453-454 properties, adding, 430-432 properties, exposing, 430-432 testing, 430 in Toolbox, 430 Team LiB Team LiB Index V validator controls, 591 values And/Or operators, 102-103 arrays with, initializing, 140-141 conversion, 76-78 invalid, setting, 146-147 representation, 75-76 setting, 336 Step, 116-117 string, 60 VarChar data type, 623 variables Boolean, 73 control, 116 creating, 49-50 data types, 53 defined, 49 definition with strings, 60 floating-point, 57-59 member, 332 optimization of, 73 public, 339 querying, 311 storing, 73-78 syntax-checking, 294 working with, 49-51 vector graphics See also graphics defined, 455 raster graphics combined with, 455 version numbers, 215 View menu See also menus coding, 276-277 displaying, 279 submenus, 279, 280-281 View menu (Visual Studio NET) Custom Actions command, 728 defined, 16 File System command, 728 Object Browser command, 358 Other Windows Object Browser command, 423 Other Windows Task List command, 194 Tab Order command, 210, 211 Toolbars command, 17 Toolbars Debug command, 302 Toolbox command, 23 Visual Basic, Visual Basic NET CD, client/server processing with, 601-602 data access components, 508-510 defined, disk to memory swap, 12 IDE, 14-18 installation, 9-14 release, uses, version tracking, 417 Visual Basic Extensions (VBXs), 629 Visual Basic Users Group (VBUG) Web site, 759 Visual C++.NET, The Visual Studio Magazine, 759 Visual Studio NET adding class library in, 410 Command Prompt, 417 defined, Image Editor, 384 languages, menus, 15-17 MSDN documentation and, 13 NET CF integration, 741 Professional version, Setup application, 725-727 tools, versions, Window Installer, 725 working in, 415 Team LiB Team LiB Index W Watch window debugging with, 312-314 defined, 312 functions, 312 illustrated, 314 variable values, 314 Web applications creating, 592-605 test, 632-633 Web Browser control, 703 Web forms code, 585-587 controls, 587-591 creating, 592-605 data binding in, 605-627 DataGrid control, 606-612 design mode, 585-586 displaying, in browser, 594 HTML controls, 587-591 HTML view, 586 as outer container, 630 overview, 585 post-back handler, 641 for production appliction, 605 Windows Forms vs., 584-591 Web references adding, 704-706 defined, 704 renaming, 705 Web Server controls See also controls; Web forms ASP.NET basis, 688 Button, 635 code execution, 630 creating, 629-642 defined, 590, 629 MessageBox, 631-632 products of, 629 as rich controls, 590 validator, 591 Web services building, 687-691 calling methods on, 706 calling methods on remote objects and, 708 choosing, 683 as classes, 687 connecting, 712 consuming, 702, 707, 708 defined, 683-684 demonstration, 687-689 deploying, 735 exception handling and, 708 functioning of, 684-685 NET implementation of, 684 principle behind, 684, 702 pros/cons, 684 protocols, 786 resource, 684 server, 691 Web Services Description Language (WSDL), 702 Web Setup Project template, 218, 725 WebFavorite class building, 369-370 defined, 366 WebFavorite object creating, 375 functioning of, 375-377 population, 375 WebFavoriteCollection class, 366 WebFavoriteListViewItem class, 378, 381 WebFavoriteMenuItem class, 387, 389 WebService class, 688, 702 While… End While loop, 125 whitespace, 53 Win32 API defined, 39 functionality, 40 for Linux, 39 Window menu, 17 windows dialog box, 211-212 modal, 213 normal, 211 Windows, Microsoft advantages, API, CE emulator, 744 DOS program versus, 8-9 incarnations, 36 Microsoft reliance on, 35-39 software, writing, 39-43 Windows Forms adding, 212 defined, 179 overivew, 585 Web forms vs., 584-591 Windows Forms Controls See also controls defined, 427 uses, 427-428 Windows Installer functionality, 215 WithEvents keyword, 449, 450 wmf format, 490 words, counting, 188-191 Write method, 243 Write Overloaded method, 240 WriteLine Overload method, 240 Wrox Text Editor deploying, 215-220 installation instructions, 220 WSDL See Web Services Description Language Team LiB Team LiB Index X-Y XCOPY deployment defined, 724 shared assemblies and, 725 XML for client sorting, 605 defined, 643 delimiting tags, 645 documents, 644, 651 documents, integrating, 673-674 file, changing, 657-658 file, loading, 654-657 need for, 643 NET and, 677 overview, 643-647 resources, 673 as rule set, 645 schemas, 644 storage format, 647 as tag-based, 645 for Visual Basic newcomers, 646-647 XmlSerializer class, 652-657 Team LiB Team LiB Index Z zero-based arrays, 672 Team LiB Team LiB List of Figures Chapter 1: Welcome to Visual Basic NET Figure 1-1 Figure 1-2 Figure 1-3 Figure 1-4 Figure 1-5 Figure 1-6 Figure 1-7 Figure 1-8 Figure 1-9 Figure 1-10 Figure 1-11 Figure 1-12 Figure 1-13 Figure 1-14 Figure 1-15 Figure 1-16 Figure 1-17 Figure 1-18 Figure 1-19 Figure 1-20 Figure 1-21 Figure 1-22 Figure 1-23 Chapter 2: The Microsoft NET Framework Figure 2-1 Figure 2-2 Chapter 3: Writing Software Figure 3-1 Figure 3-2 Figure 3-3 Figure 3-4 Figure 3-5 Figure 3-6 Figure 3-7 Figure 3-8 Figure 3-9 Figure 3-10 Figure 3-11 Figure 3-12 Figure 3-13 Figure 3-14 Figure 3-15 Figure 3-16 Figure 3-17 Chapter 4: Controlling the Flow Figure 4-1 Figure 4-2 Figure 4-3 Figure 4-4 Figure 4-5 Figure 4-6 Figure 4-7 Figure 4-8 Figure 4-9 Figure 4-10 Figure 4-11 Figure 4-12 Figure 4-13 Figure 4-14 Figure 4-15 Figure 4-16 Figure 4-17 Figure 4-18 Figure 4-19 Figure 4-20 Figure 4-21 Figure 4-22 Figure 4-23 Figure 4-24 Figure 4-25 Figure 4-26 Figure 4-27 Chapter 5: Working with Data Structures Figure 5-1 Figure 5-2 Figure 5-3 Figure 5-4 Figure 5-5 Figure 5-6 Figure 5-7 Figure 5-8 Figure 5-9 Figure 5-10 Figure 5-11 Figure 5-12 Figure 5-13 Figure 5-14 Figure 5-15 Figure 5-16 Figure 5-17 Figure 5-18 Figure 5-19 Figure 5-20 Figure 5-21 Figure 5-22 Figure 5-23 Figure 5-24 Figure 5-25 Figure 5-26 Figure 5-27 Figure 5-28 Figure 5-29 Figure 5-30 Chapter 6: Building Windows Applications Figure 6-1 Figure 6-2 Figure 6-3 Figure 6-4 Figure 6-5 Figure 6-6 Figure 6-7 Figure 6-8 Figure 6-9 Figure 6-10 Figure 6-11 Figure 6-12 Figure 6-13 Figure 6-14 Figure 6-15 Figure 6-16 Figure 6-17 Figure 6-18 Figure 6-19 Figure 6-20 Figure 6-21 Figure 6-22 Figure 6-23 Figure 6-24 Figure 6-25 Figure 6-26 Figure 6-27 Figure 6-28 Figure 6-29 Figure 6-30 Figure 6-31 Figure 6-32 Figure 6-33 Chapter 7: Displaying Dialog Boxes Figure 7-1 Figure 7-2 Figure 7-3 Figure 7-4 Figure 7-5 Figure 7-6 Figure 7-7 Figure 7-8 Figure 7-9 Figure 7-10 Figure 7-11 Figure 7-12 Figure 7-13 Figure 7-14 Figure 7-15 Figure 7-16 Figure 7-17 Chapter 8: Creating Menus Figure 8-1 Figure 8-2 Figure 8-3 Figure 8-4 Figure 8-5 Figure 8-6 Figure 8-7 Figure 8-8 Figure 8-9 Figure 8-10 Figure 8-11 Figure 8-12 Figure 8-13 Figure 8-14 Figure 8-15 Figure 8-16 Figure 8-17 Figure 8-18 Figure 8-19 Chapter 9: Debugging and Error Handling Figure 9-1 Figure 9-2 Figure 9-3 Figure 9-4 Figure 9-5 Figure 9-6 Figure 9-7 Figure 9-8 Figure 9-9 Figure 9-10 Figure 9-11 Figure 9-12 Figure 9-13 Figure 9-14 Figure 9-15 Figure 9-16 Figure 9-17 Figure 9-18 Figure 9-19 Figure 9-20 Figure 9-21 Figure 9-22 Figure 9-23 Figure 9-24 Chapter 10: Building Objects Figure 10-1 Figure 10-2 Figure 10-3 Figure 10-4 Figure 10-5 Figure 10-6 Figure 10-7 Figure 10-8 Figure 10-9 Figure 10-10 Figure 10-11 Figure 10-12 Figure 10-13 Figure 10-14 Figure 10-15 Figure 10-16 Figure 10-17 Chapter 11: Advanced Object-Oriented Techniques Figure 11-1 Figure 11-2 Figure 11-3 Figure 11-4 Figure 11-5 Figure 11-6 Figure 11-7 Figure 11-8 Figure 11-9 Figure 11-10 Figure 11-11 Figure 11-12 Figure 11-13 Figure 11-14 Figure 11-15 Figure 11-16 Figure 11-17 Figure 11-18 Figure 11-19 Figure 11-20 Figure 11-21 Figure 11-22 Chapter 12: Building Class Libraries Figure 12-1 Figure 12-2 Figure 12-3 Figure 12-4 Figure 12-5 Figure 12-6 Figure 12-7 Figure 12-8 Figure 12-9 Figure 12-10 Figure 12-11 Chapter 13: Creating Your Own Custom Controls Figure 13-1 Figure 13-2 Figure 13-3 Figure 13-4 Figure 13-5 Figure 13-6 Figure 13-7 Figure 13-8 Figure 13-9 Chapter 14: Programming Custom Graphics Figure 14-1 Figure 14-2 Figure 14-3 Figure 14-4 Figure 14-5 Figure 14-6 Figure 14-7 Figure 14-8 Figure 14-9 Figure 14-10 Chapter 15: Accessing Databases Figure 15-1 Figure 15-2 Figure 15-3 Figure 15-4 Figure 15-5 Figure 15-6 Figure 15-7 Figure 15-8 Figure 15-9 Figure 15-10 Figure 15-11 Figure 15-12 Figure 15-13 Figure 15-14 Figure 15-15 Figure 15-16 Figure 15-17 Figure 15-18 Figure 15-19 Figure 15-20 Figure 15-21 Figure 15-22 Figure 15-23 Figure 15-24 Chapter 16: Database Programming with SQL Server and ADO.NET Figure 16-1 Figure 16-2 Figure 16-3 Figure 16-4 Figure 16-5 Figure 16-6 Figure 16-7 Figure 16-8 Figure 16-9 Figure 16-10 Figure 16-11 Figure 16-12 Figure 16-13 Chapter 17: Web Forms Figure 17-1 Figure 17-2 Figure 17-3 Figure 17-4 Figure 17-5 Figure 17-6 Figure 17-7 Figure 17-8 Figure 17-9 Figure 17-10 Figure 17-11 Figure 17-12 Figure 17-13 Figure 17-14 Figure 17-15 Figure 17-16 Figure 17-17 Figure 17-18 Chapter 18: Creating Web Server Controls Figure 18-1 Figure 18-2 Figure 18-3 Figure 18-4 Figure 18-5 Chapter 19: Visual Basic NET and XML Figure 19-1 Figure 19-2 Figure 19-3 Figure 19-4 Figure 19-5 Figure 19-6 Figure 19-7 Figure 19-8 Chapter 20: Web Services and NET Remoting Figure 20-1 Figure 20-2 Figure 20-3 Figure 20-4 Figure 20-5 Figure 20-6 Figure 20-7 Figure 20-8 Figure 20-9 Figure 20-10 Figure 20-11 Figure 20-12 Figure 20-13 Figure 20-14 Figure 20-15 Figure 20-16 Figure 20-17 Chapter 21: Deploying Your Application Figure 21-1 Figure 21-2 Figure 21-3 Figure 21-4 Figure 21-5 Figure 21-6 Figure 21-7 Chapter 22: Building Mobile Applications Figure 22-1 Figure 22-2 Figure 22-3 Figure 22-4 Appendix B: Architecture and Design Patterns Figure B-1 Figure B-2 Figure B-3 Team LiB Team LiB List of Tables Chapter 1: Welcome to Visual Basic NET Table 1-1: Common prefixes in Visual Basic Net Chapter 5: Working with Data Structures Table 5-1: Setting Form1 properties Chapter 7: Displaying Dialog Boxes Table 7-1: Icons available for MessageBox Table 7-2: Available buttons for MessageBox Table 7-3: Available default option buttons for MessageBox Table 7-4: Miscellaneous options for MessageBox Table 7-5: Members of the DialogResult enumeration Table 7-6: Properies of OpenFileDialog Table 7-7: Properties of SaveFileDialog Table 7-8: Properties of the FontDialog control Table 7-9: Properties of the ColorDialog control Table 7-10: Properties of the PrintDialog control Table 7-11: Properties of the PrintDocument class Chapter 16: Database Programming with SQL Server and ADO.NET Table 16-1: Parameters for creating a connection string to access SQL Server Table 16-2: Additional parameters when using a username and password Chapter 22: Building Mobile Applications Table 22-1: Controls found in the NET Compact Framework Table 22-2: Missing NET Framework library portions Table 22-3: Additional NET Framework library portions Appendix C: An Introduction to Code Security Table C-1: Descriptions of membership conditions Table C-2: Permission Sets Team LiB ... XML, Beginning VB. NET, Professional VB. NET, and served as Technical Reviewer on Professional Design Patterns with VB. NET, all published by Wrox Press He also presented at DevDays99, the Wrox. .. XML, Beginning VB. NET, Professional VB. NET, and served as Technical Reviewer on Professional Design Patterns with VB. NET, all published by Wrox Press He also presented at DevDays99, the Wrox. .. Particularly appropriate to this book are the beginning_ vb and vb_ dotnet lists To subscribe to a mailing list just follow these steps: Go to http://p2p .wrox. com/ Choose the appropriate category from

Ngày đăng: 26/03/2019, 16:04

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

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

Tài liệu liên quan