Microsoft Visual Basic .NET Step by Step (微軟 Visual Basic .NET 循序漸進)

Michael Halvorson

  • 出版商: MicroSoft
  • 出版日期: 2002-01-01
  • 定價: $1,400
  • 售價: 5.0$700
  • 語言: 英文
  • 頁數: 624
  • 裝訂: Paperback
  • ISBN: 0735613745
  • ISBN-13: 9780735613744
  • 相關分類: .NETVisual Basic
  • 立即出貨(限量) (庫存=1)

買這商品的人也買了...

相關主題

商品描述

Description:

Graduate to the next generation of Visual Basic at your own pace with the proven Microsoft STEP BY STEP method.

This primer is the fast way for any developer who uses Microsoft® Visual Basic® to begin creating professional applications for the Microsoft .NET platform by unleashing all the power of the .NET-ready version of Visual Basic. Learn core programming skills by selecting just the chapters you need—with code, optimization tips, advice, and samples straight from the experts. Upgrade your Visual Basic 6 applications quickly using “Upgrade Notes” sidebars, a special upgrading index, and practical advice about the Visual Basic .NET Upgrade Wizard. Topics covered include:

• Writing your first program and working with Toolbox controls, menus, and dialog boxes
• Mastering programming fundamentals, including variables, decision structures, loops, and functions
• Using methods in the .NET Framework class libraries
• Debugging Visual Basic .NET programs
• Trapping errors using structured error handling
• Using modules and procedures
• Using collections and arrays to manage data
• Exploring text files and string processing
• Automating Microsoft Office applications and managing processes
• Deploying Visual Basic .NET applications
• Managing Windows® forms and adding graphics and animation effects
• Inheriting forms and creating base classes
• Writing custom code for printers
• Managing Access databases
• Creating database applications with ADO.NET
• Presenting data using the FlexGrid control
• Displaying HTML documents using Microsoft Internet Explorer
• Using Web Forms to build Internet interfaces
• Porting Visual Basic 6 Programs to Visual Basic .NET
• Finding more information

INCLUDED ON CD-ROM:
• Sample code in Visual Basic .NET

 

 

Table of Contents:

Finding Your Best Starting Point xi
Finding Your Best Starting Point in This Book xii / New Features in Visual Basic .NET xiii / Corrections, Comments, and Help xv / Visit the Microsoft Press World Wide Web Site xvi  
About the CD-ROM and Practice Files xvii
System Requirements xvii / Installing the Practice Files on Your Computer xviii / Using the Practice Files xix / Uninstalling the Practice Files xxiv / Need Help with the Practice Files? xxiv  
Conventions and Features in This Book xxv
PART 1   GETTING STARTED WITH MICROSOFT VISUAL BASIC .NET 1
CHAPTER 1   Opening and Running a Visual Basic .NET Program 3
The Visual Studio .NET Development Environment 5 / The Visual Studio .NET Tools 10 / The Properties Window 16 / Moving and Resizing the Programming Tools 20 / Getting Help 26 / One Step Further: Exiting Visual Studio .NET 30 / Quick Reference 31  
CHAPTER 2   Writing Your First Program 33
Lucky Seven: Your First Visual Basic Program 35 / Programming Steps 35 / Creating the User Interface 36 / Setting the Properties 43 / Writing the Code 49 / Running Visual Basic .NET Applications 57 / Building an Executable File 58 / One Step Further: Adding to a Program 61 / Quick Reference 62  
CHAPTER 3   Working with Toolbox Controls 65
The Basic Use of Controls: The "Hello World" Program 66 / Using the DateTimePicker Control 72 / Controls for Gathering Input 80 / Using the LinkLabel Control 88 / One Step Further: Installing ActiveX Controls 92 / Quick Reference 95  
CHAPTER 4   Working with Menus and Dialog Boxes 97
Adding Menus Using the MainMenu Control 98 / Adding Access Keys to Menu Commands 101 / Processing Menu Choices 104 / Using Dialog Box Controls 108 / Event Procedures That Manage Common Dialog Boxes 113 / One Step Further: Assigning Shortcut Keys to Menus 121 / Quick Reference 124  
PART 2   PROGRAMMING FUNDAMENTALS 125
CHAPTER 5   Visual Basic .NET Variables and Operators 127
The Anatomy of a Visual Basic Program Statement 129 / Using Variables to Store Information 130 / Using Variables in a Program 132 / Using a Variable to Store Input 136 / Using a Variable for Output 139 / Working with Specific Data Types 142 / Working with Visual Basic Operators 150 / Working with Math Methods in the .NET Framework 159 / One Step Further: Using Parentheses in a Formula 163 / Quick Reference 164  
CHAPTER 6   Using Decision Structures 165
Event-Driven Programming 166 / Using Conditional Expressions 168 / If.Then Decision Structures 169 / Select Case Decision Structures 180 / One Step Further: Detecting Mouse Events 186 / Quick Reference 188  
CHAPTER 7   Using Loops and Timers 189
Writing For.Next Loops 190 / Writing Do Loops 200 / The Timer Control 206 / One Step Further: Using a Timer Object to Set a Time Limit 209 / Quick Reference 212  
CHAPTER 8   Debugging Visual Basic .NET Programs 215
Finding and Correcting Errors 216 / Debugging 101: Using Break Mode 218 / Tracking Variables Using a Watch Window 224 / Using the Command Window 226 / One Step Further: Removing Breakpoints 228 / Quick Reference 229  
CHAPTER 9   Trapping Errors Using Structured Error Handling  231
Processing Errors Using Try...Catch 233 / Writing a Disk Drive Error Handler 237 / More Complex Try...Catch Error Handlers 240 / Comparing Error Handlers to Defensive Programming Techniques 247 / One Step Further: The Exit Try Statement 248 / Quick Reference 250  
PART 3   MANAGING CORPORATE DATA 253
CHAPTER 10   Using Modules and Procedures 255
Working with Standard Modules 257 / Working with Public Variables 261 / Creating Procedures 266 / Writing Function Procedures 267 / Writing Sub Procedures 273 / One Step Further: Passing Arguments by Value and by Reference 280 / Quick Reference 282  
CHAPTER 11   Using Arrays and Collections to Manage Data 285
Working with Arrays of Variables 287 / Preserving Array Contents Using ReDim Preserve 298 / Working with Object Collections 300Creating Your Own Collections 307 / One Step Further: Visual Basic for Applications Collections 311 / Quick Reference 313  
CHAPTER 12   Exploring Text Files and String Processing 315
Displaying Text Files by Using a Text Box Object 316 / Creating a New Text File on Disk 324 / Processing Text Strings with Program Code 328 / Protecting Text with Encryption 339 / One Step Further: Using the Xor Operator 342 / Quick Reference 348  
CHAPTER 13   Automating Microsoft Office Applications and Managing Processes 351
Programming Application Objects by Using Automation 352 / Automating Excel from Visual Basic 358 / One Step Further: Starting and Stopping Windows Applications Using the Process Component 366 / Quick Reference 370  
CHAPTER 14   Deploying Visual Basic .NET Applications 371
Planning a Deployment 373 / Creating a Deployment Project 376 / Customizing Your Deployment Options 386 / Building a Deployment Project and Testing Setup 392 / One Step Further: Examining Setup Files and Uninstalling 396 / Quick Reference 400  
PART 4   ADVANCED USER INTERFACE DESIGN 401
CHAPTER 15   Managing Windows Forms 403
Adding New Forms to a Program 405 / Working with Multiple Forms 406 / Positioning Forms on the Windows Desktop 413 / Adding Controls to a Form at Runtime 419 / Organizing Controls on a Form 422 / One Step Further: Specifying the Startup Object 425 / Quick Reference 428  
CHAPTER 16   Adding Graphics and Animation Effects 431
Adding Artwork Using the System.Drawing Namespace 433 / Adding Animation to Your Programs 437 / Expanding and Shrinking Objects While a Program Is Running 444 / One Step Further: Changing Form Transparency 446 / Quick Reference 448  
CHAPTER 17   Inheriting Forms and Creating Base Classes 449
Inheriting a Form Using the Inheritance Picker 450 / Creating Your Own Base Classes 455 / One Step Further: Inheriting a Base Class 463 / Quick Reference 466  
CHAPTER 18   Working with Printers 469
Using the PrintDocument Class 470 / Printing Multipage Text Files 479 / One Step Further: Adding Print Preview and Page Setup Dialog Boxes 486 / Quick Reference 492  
PART 5   DATABASE PROGRAMMING 495
CHAPTER 19   Getting Started with ADO.NET 497
Database Programming with ADO.NET 498 / Using Bound Controls to Display Database Information on a Form 511 / Creating Navigation Controls 515 / One Step Further: Displaying the Current Record Position 518 / Quick Reference 521  
CHAPTER 20   Data Presentation Using the DataGrid Control 523
Using DataGrid to Display Database Records 524 / Formatting DataGrid Cells 533 / One Step Further: Updating the Original Database 535 / Quick Reference 538  
PART 6   INTERNET PROGRAMMING 539
CHAPTER 21   Displaying HTML Documents Using Internet Explorer 541
Getting Started with the Internet Explorer Object 542 / Displaying HTML Documents 547 / One Step Further: Responding to Internet Explorer Events 551 / Quick Reference 554  
CHAPTER 22   Using Web Forms to Build Interactive Web Applications 555
Inside ASP.NET 556 / Getting Started with a Web Application 560 / Using the Web Forms Designer 566 / Adding Web Forms Controls to a Web Application 569 / One Step Further: Creating a Link to Another Web Page 575 / Quick Reference 579  
PART 7   APPENDIXES 581
APPENDIX A   Upgrading Visual Basic 6 Programs to Visual Basic .NET 583
Assessing Visual Basic 6 Programs for Compatibility 584 / Running the Visual Basic Upgrade Wizard 587  
APPENDIX B   Where to Go for More Information 595
Visual Basic .NET Web Sites 596 / Books for Visual Basic .NET Programming 597  
UPGRADING INDEX 599
INDEX 603

商品描述(中文翻譯)

描述:



使用經過驗證的微軟STEP BY STEP方法,以自己的節奏升級到下一代Visual Basic。


這本入門書是任何使用微軟Visual Basic的開發人員快速開始為微軟.NET平台創建專業應用程序的方法,發揮.NET-ready版本的Visual Basic的全部功能。通過選擇所需的章節學習核心編程技能,包括代碼、優化技巧、專家建議和示例。使用“升級注意事項”側欄、特殊的升級索引和有關Visual Basic .NET升級向導的實用建議,快速升級您的Visual Basic 6應用程序。涵蓋的主題包括:

• 編寫第一個程序,並使用工具箱控件、菜單和對話框
• 掌握編程基礎,包括變量、決策結構、循環和函數
• 使用.NET Framework類庫中的方法
• 調試Visual Basic .NET程序
• 使用結構化錯誤處理捕獲錯誤
• 使用模塊和過程
• 使用集合和數組管理數據
• 探索文本文件和字符串處理
• 自動化Microsoft Office應用程序和管理進程
• 部署Visual Basic .NET應用程序
• 管理Windows表單,添加圖形和動畫效果
• 繼承表單並創建基類
• 為打印機編寫自定義代碼
• 管理Access數據庫
• 使用ADO.NET創建數據庫應用程序
• 使用FlexGrid控件顯示數據
• 使用Microsoft Internet Explorer顯示HTML文檔
• 使用Web Forms構建互聯網界面
• 將Visual Basic 6程序移植到Visual Basic .NET
• 尋找更多信息

CD-ROM附帶:
• Visual Basic .NET的示例代碼


 


 



目錄:






找到最佳起點
xi

在本書中找到最佳起點 xii / Visual Basic .NET的新功能 xiii
/ 更正、評論和幫助 xv / 訪問微軟出版社的網站 xvi

 

關於CD-ROM和練習文件
xvii

系統要求 xvii
/ 在計算機上安裝練習文件 xviii / 使用練習文件 xix / 卸載練習文件 xxiv / 需要練習文件的幫助? xxiv

 

本書中的約定和特點
xxv