Microsoft Visual Basic .Net Deluxe Learning Edition Version 2003
暫譯: 微軟 Visual Basic .Net 豪華學習版 2003 版

Michael Halvorson, Microsoft Corporation Corporation

  • 出版商: MicroSoft
  • 出版日期: 2003-05-10
  • 定價: $3,960
  • 售價: 5.0$1,980
  • 語言: 英文
  • 頁數: 688
  • 裝訂: Paperback
  • ISBN: 0735619069
  • ISBN-13: 9780735619067
  • 相關分類: .NETVisual Basic
  • 立即出貨(限量) (庫存=1)

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

相關主題

商品描述

Description:

Step-by-step instruction—plus Visual Basic .NET 2003 Standard software—all in one box!

Everything you need to start developing powerful applications and services for Microsoft .NET is right here in a single, economical package. This DELUXE LEARNING EDITION contains Visual Basic .NET Version 2003 Standard software, along with Microsoft’s popular Step by Step tutorial. Work at your own pace through the book’s easy-to-follow lessons and hands-on exercises. And then apply your new expertise to full Visual Basic .NET software—not a simulation or trial version. It’s the ideal combination of tools and tutelage for Visual Basic .NET Version 2003.

 

Table of Contents:

Acknowledgments xi
    Introduction xiii
PART 1  GETTING STARTED WITH MICROSOFT VISUAL BASIC .NET 2003  
CHAPTER 1  Opening and Running a Visual Basic .NET 2003 Program 3
    The Visual Studio .NET Development Environment 5
    The Visual Studio .NET Tools 10
        The Windows Forms Designer 12
        Running a Visual Basic Program 14
    The Properties Window 16
    Moving and Resizing the Programming Tools 20
        Moving and Resizing Tool Windows in Visual Studio 21
        Docking a Tool in Visual Studio 23
        Hiding a Tool in Visual Studio 25
    Getting Help 27
    One Step Further: Exiting Visual Studio .NET 30
CHAPTER 2  Writing Your First Program 33
    Lucky Seven: Your First Visual Basic .NET Program 34
    Programming Steps 35
    Creating the User Interface 35
    Setting the Properties 42
        The Picture Box Properties 47
    Writing the Code 49
        A Look at the Button1_Click Procedure 54
    Running Visual Basic .NET Applications 56
    Building an Executable File 58
    One Step Further: Adding to a Program 60
CHAPTER 3  Working with Toolbox Controls 63
    The Basic Use of Controls: The "Hello World" Program 64
    Using the DateTimePicker Control 70
        The Birthday Program 70
    Controls for Gathering Input 77
        The Input Controls Demo 80
        Looking at the Input Controls Program Code 83
    Using the LinkLabel Control 86
    One Step Further: Installing ActiveX Controls 91
        The Microsoft Chart Control 91
CHAPTER 4  Working with Menus and Dialog Boxes 95
    Adding Menus Using the MainMenu Control 96
    Adding Access Keys to Menu Commands 98
    Processing Menu Choices 101
    Using Dialog Box Controls 106
        Changing the Object Names for Items on the File Menu 109
        Disabling a Menu Command 110
    Event Procedures That Manage Common Dialog Boxes 111
    One Step Further: Assigning Shortcut Keys to Menus 118
PART 2  PROGRAMMING FUNDAMENTALS  
CHAPTER 5  Visual Basic .NET Variables and Operators 125
    The Anatomy of a Visual Basic Program Statement 127
    Using Variables to Store Information 127
        Setting Aside Space for Variables: The Dim Statement 128
    Using Variables in a Program 129
    Using a Variable to Store Input 133
    Using a Variable for Output 136
    Working with Specific Data Types 138
        Constants: Variables That Don't Change 144
    Working with Visual Basic Operators 146
        Basic Math: The +, -, *, and / Operators 146
        Using Advanced Operators: \, Mod, ^, and & 150
    Working with Math Methods in the .NET Framework 155
    Operator Precedence 157
    One Step Further: Using Parentheses in a Formula 158
CHAPTER 6  Using Decision Structures 161
    Event-Driven Programming 162
    Using Conditional Expressions 164
    If.Then Decision Structures 165
        Testing Several Conditions in an If...Then Decision Structure 165
        Using Logical Operators in Conditional Expressions 170
        Short-Circuiting by Using AndAlso and OrElse 172
    Select Case Decision Structures 174
        Using Comparison Operators with a Select Case Structure 176
    One Step Further: Detecting Mouse Events 180
CHAPTER 7  Using Loops and Timers 185
    Writing For.Next Loops 186
        Displaying a Counter Variable in a TextBox Control 187
        Creating Complex For.Next Loops 190
        Opening Files Using a Counter That Has Greater Scope 193
    Writing Do Loops 196
        Avoiding an Endless Loop 197
    The Timer Control 201
        Creating a Digital Clock Using a Timer Control 201
    One Step Further: Using a Timer Object to Set a Time Limit 204
CHAPTER 8  Debugging Visual Basic .NET Programs 209
    Finding and Correcting Errors 210
        Three Types of Errors 210
        Identifying Logic Errors 212
    Debugging 101: Using Break Mode 212
    Tracking Variables by Using a Watch Window 218
    Using the Command Window 220
        Switching to Command Mode in the Command Window 222
    One Step Further: Removing Breakpoints 223
CHAPTER 9  Trapping Errors Using Structured Error Handling 225
    Processing Errors Using Try...Catch 226
        When to Use Error Handlers 227
        Setting the Trap: The Try...Catch Statement 228
        Path and Disk Drive Errors 228
    Writing a Disk Drive Error Handler 231
        Using the Finally Clause to Perform Cleanup Tasks 232
    More Complex Try...Catch Error Handlers 234
        The Err Object 234
        Specifying a Retry Period 238
        Using Nested Try...Catch Blocks 241
    Comparing Error Handlers with Defensive Programming Techniques 241
    One Step Further: The Exit Try Statement 242
PART 3  MANAGING CORPORATE DATA  
CHAPTER 10  Using Modules and Procedures 249
    Working with Standard Modules 251
        Creating a Standard Module 251
    Working with Public Variables 254
    Creating Procedures 259
    Writing Function Procedures 260
        Function Syntax 260
        Calling a Function Procedure 262
        Using a Function to Perform a Calculation 262
    Writing Sub Procedures 266
        Sub Procedure Syntax 266
        Calling a Sub Procedure 267
        Using a Sub Procedure to Manage Input 268
    One Step Further: Passing Arguments by Value and by Reference 273
        Which to Use: ByVal or ByRef? 274
CHAPTER 11  Using Arrays and Collections to Manage Data 277
    Working with Arrays of Variables 278
        Creating an Array 279
        Declaring a Fixed-Size Array 280
        Working with Array Elements 281
        Creating a Fixed-Size Array to Hold Temperatures 282
        Creating a Dynamic Array 286
    Preserving Array Contents by Using ReDim Preserve 289
    Working with Object Collections 291
        Referencing Objects in a Collection 292
        Writing For Each...Next Loops 292
        Experimenting with Objects in the Controls Collection 293
        Using the Name Property in a For Each...Next Loop 296
    Creating Your Own Collections 298
    One Step Further: Visual Basic for Applications Collections 302
CHAPTER 12  Exploring Text Files and String Processing 307
    Displaying Text Files by Using a Text Box Object 308
        Opening a Text File for Input 309
        The FileOpen Function 309
    Creating a New Text File on Disk 315
    Processing Text Strings with Program Code 319
        Processing Strings by Using Methods and Keywords 319
        Sorting Text 321
        Working with ASCII Codes 322
        Sorting Strings in a Text Box 323
    Protecting Text with Encryption 329
    One Step Further: Using the Xor Operator 333
        Examining the Encryption Code 335
CHAPTER 13  Automating Microsoft Office Applications and Managing Processes 341
    Programming Application Objects by Using Automation 342
        Using Automation in Visual Basic 343
        The Visual Studio Object Browser 344
    Automating Excel from Visual Basic 348
    One Step Further: Starting and Stopping Windows Applications by Using the Process Component 356
CHAPTER 14  Deploying Visual Basic .NET Applications 361
    Planning a Deployment 362
        Different Ways to Deploy an Application 364
    Creating a Deployment Project 365
    Customizing Your Deployment Options 375
    Building a Deployment Project and Testing Setup 381
    One Step Further: Examining Setup Files and Uninstalling 386
PART 4  ADVANCED USER INTERFACE DESIGN  
CHAPTER 15  Managing Windows Forms 393
    Adding New Forms to a Program 394
        How Forms Are Used 395
    Working with Multiple Forms 396
    Positioning Forms on the Windows Desktop 403
        Minimizing, Maximizing, and Restoring Windows 408
    Adding Controls to a Form at Runtime 409
    Organizing Controls on a Form 412
    One Step Further: Specifying the Startup Object 415
CHAPTER 16  Adding Graphics and Animation Effects 421
    Adding Artwork by Using the System.Drawing Namespace 422
        Using a Form's Coordinate System 423
        The System.Drawing.Graphics Class 424
        Using the Form's Paint Event 425
    Adding Animation to Your Programs 427
        Moving Objects on the Form 428
        The Location Property 429
        Creating Animation by Using a Timer Object 430
    Expanding and Shrinking Objects While a Program Is Running 434
    One Step Further: Changing Form Transparency 436
CHAPTER 17  Inheriting Forms and Creating Base Classes 439
    Inheriting a Form by Using the Inheritance Picker 440
    Creating Your Own Base Classes 445
        Adding a New Class to Your Project 446
    One Step Further: Inheriting a Base Class 453
CHAPTER 18  Working with Printers 459
    Using the PrintDocument Class 460
        Printing Text from a Text Box Object 465
    Printing Multipage Text Files 469
    One Step Further: Adding Print Preview and Page Setup Dialog Boxes 476
PART 5  DATABASE PROGRAMMING  
CHAPTER 19  Getting Started with ADO.NET 487
    Database Programming with ADO.NET 488
        Database Terminology 489
        Working with an Access Database 490
        Creating a Data Adapter 494
        Working with Datasets 499
    Using Bound Controls to Display Database Information on a Form 501
    Creating Navigation Controls 505
    One Step Further: Displaying the Current Record Position 509
CHAPTER 20  Data Presentation Using the DataGrid Control 513
    Using DataGrid to Display Database Records 514
    Formatting DataGrid Cells 523
    One Step Further: Updating the Original Database 525
PART 6  INTERNET PROGRAMMING  
CHAPTER 21  Displaying HTML Documents Using Internet Explorer 531
    Getting Started with the Internet Explorer Object 532
        Adding the Microsoft Internet Controls Reference to Your Application 533
        Investigating the Internet Explorer Object Model 534
    Displaying HTML Documents 537
    One Step Further: Responding to Internet Explorer Events 541
CHAPTER 22  Using Web Forms to Build Interactive Web Applications 545
    Inside ASP.NET 546
        Web Forms vs. Windows Forms 547
        HTML Controls 548
        Web Forms Controls 549
    Getting Started with a Web Application 550
        Installing the Software for ASP.NET Programming 550
    Using the Web Forms Designer 556
    Adding Web Forms Controls to a Web Application 559
        Writing Event Procedures for Web Forms Controls 561
    One Step Further: Creating a Link to Another Web Page 565
PART 7  APPENDIXES  
APPENDIX A  Upgrading Visual Basic 6 Programs to Visual Basic .NET 2003 573
    Assessing Visual Basic 6 Programs for Compatibility 574
        Problematic Issues 575
        Internet Resources for Migration 576
        Upgrade Steps 577
    Running the Visual Basic Upgrade Wizard 577
APPENDIX B   Where to Go for More Information 587
    Visual Basic .NET Web Sites 587
        http://msdn.microsoft.com/vbasic/ 588
        http://www.devx.com/ 588
        http://www.microsoft.com/mspress/ 588
        http://www.microsoft.com/traincert/ 588
        http://communities2.microsoft.com/home/ 589
    Books for Visual Basic .NET Programming 589
        Visual Basic .NET Programming 589
        Web Programming with ASP .NET 590
        Database Programming with ADO.NET 590
        Visual Basic for Applications Programming 590
UPGRADING INDEX 591
INDEX

商品描述(中文翻譯)

描述:
逐步指導—加上 Visual Basic .NET 2003 Standard 軟體—全都在一個盒子裡!

您所需的一切,讓您開始為 Microsoft .NET 開發強大的應用程式和服務,都在這個經濟實惠的單一包裝中。這本豪華學習版包含 Visual Basic .NET 2003 Standard 軟體,以及微軟流行的逐步教學。您可以按照自己的步調,通過書中易於遵循的課程和實作練習進行學習。然後將您的新專業知識應用於完整的 Visual Basic .NET 軟體—而不是模擬或試用版本。這是 Visual Basic .NET 2003 的理想工具和教學組合。

目錄:
致謝
xi
引言
xiii
第一部分 開始使用 Microsoft Visual Basic .NET 2003
第一章 開啟和運行 Visual Basic .NET 2003 程式
3
Visual Studio .NET 開發環境
5
Visual Studio .NET 工具
10
Windows 表單設計器
12
運行 Visual Basic 程式
14
屬性窗口
16
移動和調整程式設計工具的大小
20
在 Visual Studio 中移動和調整工具窗口的大小
21
在 Visual Studio 中停靠工具
23
在 Visual Studio 中隱藏工具
25
獲取幫助
27
更進一步:退出 Visual Studio .NET
30
第二章 寫下您的第一個程式
33
幸運七:您的第一個 Visual Basic .NET 程式
34
程式設計步驟
35
創建使用者介面
35
設置屬性
42
圖片框屬性
47
編寫程式碼
49
查看 Button1_Click 程序
54
運行 Visual Basic .NET 應用程式
56
建立可執行檔案
58
更進一步:向程式添加內容
60
第三章 使用工具箱控制項
63
控制項的基本使用:'Hello World' 程式
64
使用 DateTimePicker 控制項
70
生日程式
70
收集輸入的控制項
77
輸入控制項示範
80
查看輸入控制項程式碼
83
使用 LinkLabel 控制項
86
更進一步:安裝 ActiveX 控制項
91
Microsoft 圖表控制項
91
第四章 使用菜單和對話框
95
使用 MainMenu 控制項添加菜單
96
為菜單命令添加存取鍵
98
處理菜單選擇
101
使用對話框控制項
106
更改檔案菜單項目的物件名稱
109
禁用菜單命令
110
管理常見對話框的事件程序
111
更進一步:為菜單分配快捷鍵
118
第二部分 程式設計基礎
第五章 Visual Basic .NET 變數和運算符
125
Visual Basic 程式語句的結構
127
使用變數儲存資訊
127
為變數保留空間:Dim 語句
128
在程式中使用變數
129
使用變數儲存輸入
133
使用變數進行輸出
136
處理特定資料類型
138
常數:不變的變數
144
使用 Visual Basic 運算符
146
基本數學:+、-、* 和 /
146
使用進階運算符:\, Mod、^ 和 &
150
在 .NET Framework 中使用數學方法
155
運算符優先順序
157
更進一步:在公式中使用括號
158
第六章 使用決策結構
161
事件驅動程式設計
162
使用條件表達式
164
If...Then 決策結構
165
在 If...Then 決策結構中測試多個條件
165
在條件表達式中使用邏輯運算符
170
使用 AndAlso 和 OrElse 進行短路
172
Select Case 決策結構
174
在 Select Case 結構中使用比較運算符
176
更進一步:檢測滑鼠事件
180
第七章 使用迴圈和計時器
185
編寫 For...Next 迴圈
186
在 TextBox 控制項中顯示計數器變數
187
創建複雜的 For...Next 迴圈
190
使用範圍更大的計數器開啟檔案
193
編寫 Do 迴圈
196
避免無限迴圈
197
計時器控制項
201
使用計時器控制項創建數位時鐘