Visual Basic 2005: Your visual blueprint for writing dynamic applications
暫譯: Visual Basic 2005:撰寫動態應用程式的視覺藍圖

Jim Keogh

  • 出版商: Hungry Minds
  • 出版日期: 2006-06-13
  • 售價: $1,280
  • 貴賓價: 9.5$1,216
  • 語言: 英文
  • 頁數: 320
  • 裝訂: Paperback
  • ISBN: 0471793442
  • ISBN-13: 9780471793441
  • 相關分類: Visual Basic
  • 已過版

相關主題

商品描述

Description

Welcome to the only guidebook series that takes a visual approach to professional-level computer topics. Open the book and you'll discover step-by-step screen shots that demonstrate over 100 key Visual Basic 2005 techniques, including:

  • Installing VB 2005.
  • Creating forms, menus, and dialog boxes.
  • Setting defaults and creating controls.
  • Declaring variables, expressions, and arrays.
  • Creating conditional statements.
  • Developing assorted loops.
  • Defining subroutines.
  • Using classes.
  • Debugging and packaging applications.

And, of course, you ll find the Visual series features you ve come to expect, such as:

  • High-resolution screen shots demonstrate each task.
  • Succinct explanations walk you through step by step.
  • Two-page lessons break big topics into bite-sized modules.
  • "Apply It" and "Extra" sidebars highlight useful tips.

Order your copy today.

Table of Contents

1 GETTING STARTED WITH VB.NET.

Install Visual Studio 2005.

Create a New Project.

Using Parts of a Project.

Create a “Hello World” Application.

2 WORKING WITH WINDOWS FORMS.

Create a New Form.

Add a Control to a Form.

Set the Properties of a Control.

Resize a Control.

Create a Menu.

Create a Dialog Box.

Set the Tab Key Order.

Create a Message Box.

Write Code for an Event.

3 CREATING WINDOWS CONTROLS: LABELS, TEXT BOXES, AND LISTS.

Add a TextBox Control to a Form.

Access a TextBox Control.

Set Defaults for a TextBox Control.

Add a Label Control to a Form.

Add a ListBox Control.

Set Defaults for a ListBox Control.

Write Items to a ListBox Control.

Access an Item Selected from a ListBox Control.

Add a ComboBox Control.

Access an Item Selected from a ComboBox Control.

4 CREATING WINDOWS CONTROLS: BUTTONS, RADIO BUTTONS, AND CHECK BOXES.

Add a Button Control.

Write a Button Control Event.

Change the Label of a Button Control.

Using an Image for a Button Control.

Make a Button the Default Button.

Add a Radio Button.

Access a Radio Button.

Add a Check Box.

Access a Check Box.

Create a GroupBox Control.

5 DECLARING VARIABLES, EXPRESSIONS, AND STATEMENTS.

Understanding Variable Types.

Declare a Variable.

Initialize a Variable.

Assign a Value to a Variable.

Using Variables.

Change the Value of a Variable.

Convert Data Types.

Create a Simple Expression.

Create a Complex Expression.

Using Operator Precedence.

Create a Statement.

Create More Complex Expressions.

6 CREATING CONDITIONAL STATEMENTS.

Understanding Conditional Statements.

Create an If...Then Statement.

Create an Equivalent Logical Expression.

Create a Not Equivalent Logical Expression.

Create a Compound Logical Expression.

Create an If...Then...Else Statement.

Create an If...Then...ElseIf...Then Statement.

Create an If...Then...ElseIf...Then...Else Statement.

Create a Nested If...Then Statement.

Create a Select Case Statement.

Create a Select Case...Case Else Statement.

7 CREATING LOOPS.

Create a For Loop.

Increment a For Loop by a Set Value.

Create a Do While Loop.

Create a Do Until Loop.

Create a Do Loop While Loop.

8 DECLARING ARRAYS.

Declare an Array.

Initialize an Array.

Assign a Value to an Array.

Access the Value of an Array Element.

Declare a Multidimensional Array.

Assign a Value to a Multidimensional Array.

Access Elements of a Multidimensional Array.

Sort an Array.

Search Array Elements.

Size an Array.

Create a Dynamic Array.

Pass an Array to a Subroutine or Function.

Return an Array from a Function.

Change an Array Value Using ByRef.

9 DEFINING SUBROUTINES AND FUNCTIONS.

Define a Subroutine.

Call a Subroutine.

Create Parameters for a Subroutine.

Pass Parameters to a Subroutine.

Define a Function.

Call a Function.

10 UNDERSTANDING DATABASES.

Understanding Database Design.

An Introduction to ADO.NET.

Understanding Data, Tables, and a Database.

Connect to a Database.

Configure the Data Source.

Using the Data Sources Window.

Using SQL Statements.

Using the DataGridView Control.

Remove a Column from the Data Grid View.

Add a Column to the Data Grid View.

Change the Color of Every Other Row.

Save Changes Made to the Data Grid View.

Save Changes to a Database Using a Button Control.

Add a SQL Query to the Data Grid View.

Using Code to Bind Data to a Combo Box.

Using the ReportViewer Control.

11 DEBUGGING YOUR APPLICATION.

Set Breakpoints.

Using the Watch Window.

Using a Visualizer.

12 USING CLASSES.

Create a Class and Declare an Object.

Create a Sub Method for a Class.

Create a Function Method for a Class.

Create a Private Method.

Create a Protected Method.

Create a New() Method.

Call a Method of a Class.

Pass a Value to a Method of a Class.

Assign a Value to a Public Property.

Create a Property Procedure for a Class.

Get a Value of a Property Procedure.

Set a Value of a Property Procedure.

Validate a Property Value.

Inherit a Class.

Using Overloading.

Using Multiple Inheritance.

13 CREATING COMPONENTS.

An Introduction to Component Creation.

Create a Component.

Create a Windows Forms Control.

Handle Default Properties.

Add a Member.

Add an Event.

Using Standard Controls.

Create a Control from Scratch.

Reference a Library.

14 CREATING GRAPHICS.

Add a Picture to a Form.

Using the Color Dialog Box.

Understanding the Graphics Object.

Create a Brush.

Create a Pen.

Draw Bitmaps and Images.

Draw Simple Primitives.

Draw a Curve.

Draw Text.

Create a Path.

Using Regions.

Create a Shaped Window.

15 PROVIDING INPUT AND OUTPUT.

Using a File Stream.

Read from a Stream.

Write to a Stream.

Watch for File System Changes.

Access File Information.

Access Directory Information.

Provide a File Dialog Box.

Using the PrintDocument Control.

Using the Printer Dialog Box.

Using the Page Setup Dialog Box.

Create a Print Preview.

Download from a Web Server.

Make a Connection to a Server.

Accept Incoming Connections.

16 PACKAGING YOUR APPLICATION.

Create a Setup Program.

Create a Shortcut for Your Application.

Create an Icon for Your Application.

Run the Setup Program.

INDEX.

商品描述(中文翻譯)

**描述**

歡迎來到唯一一本以視覺方式介紹專業級電腦主題的指南系列。打開這本書,您將發現逐步的螢幕截圖,展示超過100個關鍵的 Visual Basic 2005 技巧,包括:

- 安裝 VB 2005。
- 創建表單、菜單和對話框。
- 設定預設值和創建控制項。
- 宣告變數、表達式和陣列。
- 創建條件語句。
- 開發各種迴圈。
- 定義子程序。
- 使用類別。
- 除錯和打包應用程式。

當然,您還會找到您所期待的 Visual 系列特色,例如:

- 高解析度的螢幕截圖展示每個任務。
- 簡潔的解釋逐步引導您。
- 兩頁的課程將大主題分解為易於消化的模組。
- “應用它”和“額外”側邊欄突顯有用的提示。

今天就訂購您的副本吧。

**目錄**

1. 開始使用 VB.NET。
- 安裝 Visual Studio 2005。
- 創建新專案。
- 使用專案的部分。
- 創建“Hello World”應用程式。

2. 使用 Windows 表單。
- 創建新表單。
- 向表單添加控制項。
- 設定控制項的屬性。
- 調整控制項大小。
- 創建菜單。
- 創建對話框。
- 設定 Tab 鍵順序。
- 創建消息框。
- 為事件編寫程式碼。

3. 創建 Windows 控制項:標籤、文本框和列表。
- 向表單添加 TextBox 控制項。
- 訪問 TextBox 控制項。
- 設定 TextBox 控制項的預設值。
- 向表單添加 Label 控制項。
- 添加 ListBox 控制項。
- 設定 ListBox 控制項的預設值。
- 向 ListBox 控制項寫入項目。
- 訪問從 ListBox 控制項選擇的項目。
- 添加 ComboBox 控制項。
- 訪問從 ComboBox 控制項選擇的項目。

4. 創建 Windows 控制項:按鈕、單選按鈕和複選框。
- 添加按鈕控制項。
- 編寫按鈕控制項事件。
- 更改按鈕控制項的標籤。
- 為按鈕控制項使用圖像。
- 將按鈕設為預設按鈕。
- 添加單選按鈕。
- 訪問單選按鈕。
- 添加複選框。
- 訪問複選框。
- 創建 GroupBox 控制項。

5. 宣告變數、表達式和語句。
- 理解變數類型。
- 宣告變數。
- 初始化變數。
- 為變數賦值。
- 使用變數。
- 更改變數的值。
- 轉換資料類型。
- 創建簡單表達式。
- 創建複雜表達式。
- 使用運算子優先順序。
- 創建語句。
- 創建更複雜的表達式。

6. 創建條件語句。
- 理解條件語句。
- 創建 If...Then 語句。
- 創建等效邏輯表達式。
- 創建不等效邏輯表達式。
- 創建複合邏輯表達式。
- 創建 If...Then...Else 語句。
- 創建 If...Then...ElseIf...Then 語句。
- 創建 If...Then...ElseIf...Then...Else 語句。
- 創建巢狀 If...Then 語句。
- 創建 Select Case 語句。
- 創建 Select Case...Case Else 語句。

7. 創建迴圈。
- 創建 For 迴圈。
- 以設定值遞增 For 迴圈。
- 創建 Do While 迴圈。
- 創建 Do Until 迴圈。
- 創建 Do Loop While 迴圈。

8. 宣告陣列。
- 宣告陣列。
- 初始化陣列。
- 為陣列賦值。
- 訪問陣列元素的值。
- 宣告多維陣列。
- 為多維陣列賦值。
- 訪問多維陣列的元素。
- 排序陣列。
- 搜尋陣列元素。
- 設定陣列大小。
- 創建動態陣列。
- 將陣列傳遞給子程序或函數。
- 從函數返回陣列。
- 使用 ByRef 更改陣列值。

9. 定義子程序和函數。
- 定義子程序。
- 呼叫子程序。
- 為子程序創建參數。
- 將參數傳遞給子程序。
- 定義函數。
- 呼叫函數。

10. 理解資料庫。
- 理解資料庫設計。
- ADO.NET 簡介。
- 理解資料、表格和資料庫。
- 連接到資料庫。
- 配置資料來源。
- 使用資料來源視窗。
- 使用 SQL 語句。
- 使用 DataGridView 控制項。
- 從資料網格視圖中移除列。
- 向資料網格視圖中添加列。
- 更改每隔一行的顏色。
- 保存對資料網格視圖所做的更改。
- 使用按鈕控制項將更改保存到資料庫。
- 向資料網格視圖添加 SQL 查詢。
- 使用程式碼將資料綁定到 Combo Box。
- 使用 ReportViewer 控制項。

11. 除錯您的應用程式。
- 設定斷點。
- 使用監視視窗。
- 使用可視化工具。

12. 使用類別。
- 創建類別並宣告物件。
- 為類別創建子方法。
- 為類別創建函數方法。
- 創建私有方法。
- 創建保護方法。
- 創建 New() 方法。
- 呼叫類別的方法。
- 將值傳遞給類別的方法。
- 為公共屬性賦值。
- 為類別創建屬性程序。
- 獲取屬性程序的值。
- 設定屬性程序的值。
- 驗證屬性值。
- 繼承類別。
- 使用重載。
- 使用多重繼承。

13. 創建元件。
- 元件創建簡介。
- 創建元件。
- 創建 Windows 表單控制項。