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
-
相關分類:
.NET、Visual Basic
立即出貨(限量) (庫存=1)
買這商品的人也買了...
-
$1,200$1,176 -
$1,090$1,068 -
$680$537 -
$2,640$2,508 -
$1,068Software Engineering, 6/e
-
$1,570$1,492 -
$1,029Operating System Concepts, 6/e
-
$1,045Java How to Program, 4/e
-
$970Introduction to Algorithms, 2/e
-
$931A First Course in Database Systems, 2/e
-
$1,150$1,127 -
$825Professional XML for .NET Developers (Paperback)
-
$950Artificial Intelligence: A Guide to Intelligent Systems
-
$580$458 -
$1,730$1,644 -
$700$686 -
$1,274Computer Architecture: A Quantitative Approach, 3/e(精裝本)
-
$1,030$1,009 -
$120$95 -
$550$435 -
$1,880$1,786 -
$1,300$1,235 -
$1,650$1,568 -
$780$741 -
$650$553
相關主題
商品描述
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 |
商品描述(中文翻譯)
描述:
以您自己的步調升級到下一代 Visual Basic,使用經過驗證的 Microsoft STEP BY STEP 方法。
這本入門書是任何使用 Microsoft® Visual Basic® 的開發人員快速開始為 Microsoft .NET 平台創建專業應用程序的捷徑,充分發揮 .NET 準備版本的 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 的示例代碼
目錄:
找到您最佳的起點
找到您在本書中的最佳起點 / Visual Basic .NET 的新功能 / 更正、評論和幫助 / 訪問 Microsoft Press 全球網站
關於 CD-ROM 和練習文件
系統要求 / 在您的計算機上安裝練習文件 / 使用練習文件 / 卸載練習文件 / 需要練習文件的幫助?
本書中的約定和特徵
第一部分 開始使用 Microsoft Visual Basic .NET
第一章 開啟和運行 Visual Basic .NET 程序
Visual Studio .NET 開發環境 / Visual Studio .NET 工具 / 屬性窗口 / 移動和調整編程工具大小 / 獲取幫助 / 更進一步:退出 Visual Studio .NET / 快速參考
第二章 編寫您的第一個程序
幸運七:您的第一個 Visual Basic 程序 / 編程步驟 / 創建用戶界面 / 設置屬性 / 編寫代碼 / 運行 Visual Basic .NET 應用程序 / 構建可執行文件 / 更進一步:向程序添加內容 / 快速參考
第三章 使用工具箱控件
控件的基本使用:'Hello World' 程序 / 使用 DateTimePicker 控件 / 收集輸入的控件 / 使用 LinkLabel 控件 / 更進一步:安裝 ActiveX 控件 / 快速參考
第四章 使用菜單和對話框
使用 MainMenu 控件添加菜單 / 為菜單命令添加訪問鍵 / 處理菜單選擇 / 使用對話框控件 / 管理常見對話框的事件過程 / 更進一步:為菜單分配快捷鍵 / 快速參考
第二部分 編程基礎
第五章 Visual Basic .NET 變量和運算符
Visual Basic 程序語句的結構 / 使用變量存儲信息 / 在程序中使用變量 / 使用變量存儲輸入 / 使用變量進行輸出 / 使用特定數據類型 / 使用 Visual Basic 運算符 / 使用 .NET Framework 中的數學方法 / 更進一步:在公式中使用括號 / 快速參考
第六章 使用決策結構
事件驅動編程 / 使用條件表達式 / If...Then 決策結構 / Select Case 決策結構 / 更進一步:檢測鼠標事件 / 快速參考
第七章 使用循環和計時器
編寫 For...Next 循環 / 編寫 Do 循環 / 計時器控件 / 更進一步:使用計時器對象設置時間限制 / 快速參考
第八章 調試 Visual Basic .NET 程序
查找和更正錯誤 / 調試 101:使用中斷模式 / 使用監視窗口跟踪變量 / 使用命令窗口 / 更進一步:移除中斷點 / 快速參考
第九章 使用結構化錯誤處理捕獲錯誤
使用 Try...Catch 處理錯誤 / 編寫磁碟驅動器錯誤處理程序 / 更複雜的 Try...Catch 錯誤處理程序 / 將錯誤處理程序與防禦性編程技術進行比較 / 更進一步:Exit Try 語句 / 快速參考
第三部分 管理企業數據
第十章 使用模塊和過程
使用標準模塊 / 使用公共變量 / 創建過程 / 編寫函數過程 / 編寫子過程 / 更進一步:按值和按引用傳遞參數 / 快速參考
第十一章 使用數組和集合來管理數據
使用變量的數組 / 使用 ReDim Preserve 保留數組內容 / 使用對象集合 / 創建自己的集合 / 更進一步:Visual Basic for Applications 集合