This book provides a comprehensive introduction to Visual Basic.NET and strives to present the latest, most comprehensive, and practical technologies to readers. The book is divided into 10 chapters, which introduces the basic knowledge, programming methods and techniques of Visual Basic.NET in detail. The content includes an overview of .NET Framework, basic concepts of Visual Basic.NET language, basic process control, object-oriented programming, basics of Windows application development, graphics processing, data access, files and registry, and preliminary development of Web applications, etc. content.
This book is especially suitable for readers with basic computer knowledge. It can be used as a teaching material for related majors in various colleges and universities, and can also be used as a self-study reference book and training material for Visual Basic.NET enthusiasts.
Table of contents:
Chapter 1 Introduction to VB.NET Language
1.1 .NET Framework Overview
1.1.1 Common Language Runtime Features
1.1.2 .NET Framework Class Library
1.1.3 Client application development
1.1.4 Server application development
1.2 Development History of VB.NET Language
1.3 Functions and new features of VB.NET
1.3.1 New features in web development
1.3.2 New features in the database
1.3.3 New features of Windows Forms and controls
1.3.4 New features of the project
1.3.5 New features for components and component making
1.3.6 New features of the debugger
1.3.7 New features in scalability and automatic control
1.3.8 New features for international applications
1.4 Standard building blocks
1.5 Summary of this chapter
1.6 Exercises
Chapter 2 Data Types, Operators, and Expressions
2.1 Data types
2.1.1 Basic data types
2.1.2 User-defined data types
2.2 Constants and variables
2.2.1 Constants
2.2.2 Variables
2.2.3 Scope of variables
2.3 Operators
2.3.1 Arithmetic operators
2.3.2 Relational operators
2.3.3 Logical operators
2.3.4 Execution order of expressions
2.4 Array
2.4.1 Fixed-length array
2.4.2 Multidimensional array
2.4.3 Lbound() function and Ubound() function
2.4.4 Dynamic array
2.4.5 Preserving the contents of dynamic arrays
2.5 Summary of this chapter
2.6 Computer practice
2.7 Exercises
Chapter 3 Basic Process Control
3.1 Conditional judgment statements
3.1.1 If...Then statement
3.1.2 If...Then...Else statement
3.1.3 If...Then...Elself statement
3.2 Branch statement
3.3 Loop statement
3.3.1 Do...Loop loop statement
3.3.2 While...End While loop
3.3.3 For...NeXt loop
3.3.4 Exit of loop
3.4 Jump statement
3.5 Exception handling structure
3.5.1 End statement
3.5.2 Stop statement
3.5.3 Exit statement
3.6 Summary of this chapter
3.7 Computer practice
3.8 Exercises
Chapter 4 Object-Oriented Programming
4.1 Overview of object-oriented
4.2 Classes and Objects
4.2.1 Class definition
4.2.2 Concepts and properties of objects
4.3 Inheritance and polymorphism
4.3.1 Inheritance
4.3.2 Polymorphism
4.4 Method overloading
4.4.1 Definition of overloading
4.4.2 Implementation of method overloading
4.5 Constructor and destructor
4.5.1 Constructor
4.5.2 Destructor
4.6 Cross-language inheritance
4.7 Namespace
4.7.1 Namespace declaration
4.7.2 Fully qualified name
4.8 Summary of this chapter
4.9 Computer practice
4.10 Exercises
Chapter 5 Designing Windows Forms
5.1 New features of Windows Forms
5.2 Form structure
5.3 Properties, events and methods of forms
5.3.1 Properties
5.3.2 Events and methods
5.4 Multi-document interface design
5.4.1 Create MDI parent form
5.4.2 Create subform
5.4.3 Determine the active subform
5.4.4 Transferring data to active subforms
5.4.5 Arranging subforms
5.5 Summary of this chapter
5.6 Computer practice
5.7 Exercises
Chapter 6 Adding Controls to a Form
6.1 Operation controls
6.2 Common controls
6.2.1 Button control
6.2.2 CheckBox and RadioButton controls
6.2.3 GroupBox control
6.2.4 TextBox control
6.2.5 RichTextBox control
6.2.6 ScrollBar control
6.1.7 TrackBar control
6.1.8 ProgressBar control
6.1.9 ListBox control
6.1.10 ComboBox control
6.2 Design menu
6.2.1 Create menu changes
6.2.2 4 types of menu elements
6.2.3 MainMenu control
6.2.4 ContexMenu component
6.3 Design toolbar
6.3.1 Add button
6.3.2 Define icons for toolbar buttons
6.3.3 Handling the Click event of the toolbar button
6.4 Add status bar
6.4.1 Add a panel to the StatusBar control
6.4.2 Determine the clicked panel
6.4.3 Set the size of the status bar panel
6.4.4 Dynamically update the content of the status bar
6.5 Dialog control
6.5.1 Creation, display and closing of dialog boxes
6.5.2 Checking the results of the dialog box
6.5.3 Display message hub
6.5.4 Common dialog boxes
6.6 Custom controls
6.7 Summary of this chapter
6.8 Computer practice
6.9 Exercises
Chapter 7 Working with Graphics
7.1 Coordinate system
7.1.1 Default specification coordinate system
7.1.2 Standard specification coordinate system
7.1.3 Customized coordinate system
7.2 Using GDI+ functions in forms
7.2.1 Create graphic images with GDI+
7.2.2 Use GDI+ to draw line shapes
7.2.3 Graphic container
7.3 System.Drawing namespace
7.3.1 System.Drawing.Drawing2d
7.3.2 System.Drawing.Imaging
7.3.3 System.Drawing.Text
7.4 Simple animation design
7.4.1 Positional animation programming design
7.4.2 Page turning animation programming design
7.5 Summary of this chapter
7.6 Computer practice
7.7 Exercises
Chapter 8 Data Access
8.1 ADO.NET Overview
8.1.1 Design Goals of ADO.NET
8.1.2 ADO.NET architecture
8.2 Connection
8.2.1 Connect to SQL Server using ADO.NET
8.2.2 Connection pooling for SQL Server.NET Data Provider
8.2.3 Use ADO.NET to connect to OLE DB data source
8.2.4 Connection voting for OLE DB.NET Data Provider
8.2.5 How connection events work
8.3 DataReader
8.3.1 Close DataReader
8.3.2 Multiple result settings
8.3.3 Obtaining structure information from DataReader
8.3.4 OLE DB Chapter
8.4 Data binding
8.4.1 Types of data binding
8.4.2 Common scenarios for using data binding
8.4.3 Data binding overview and syntax
8.4.4 Data binding expressions
8.4.5 Using DataBinder.Eval
8.5 Summary of this chapter
8.6 Computer exercises
8.7 Exercises
Chapter 9 Files and Registry
9.1 VB.NET file processing system
9.1.1 System.IO namespace
9.1.2 Related classes and enumerations
9.2 File processing
9.2.1 NewFile command
9.2.2 OpenFile command
9.2.3 FileOpen function
9.2.4 FileClose function
9.2.5 FileCopy function
9.2.6 FileAttr function
9.2.7 GetAttr function
9.2.8 SetAttr function
9.2.9 FileGet function
9.2.10 FileGetObject function
9.2.11 FilePut function
9.2.12 FilePutObject function
9.2.13 Seek function
9.2.14 Loc function
9.2.15 EOF function
9.2.16 Input function
9.2.17 InputString function
9.2.18 Write and WriteLine functions
9.2.19 Print and PrintLine functions
9.3 Reading and writing files
9.3.1 File access types
9.3.2 File access functions and statements
9.3.3 Data access functions
9.3.4 Sequential file access
9.3.5 Random file access
9.3.6 Binary file access
9.4 Reading and writing the registry
9.4.1 Changes in registry access in VB.NET
9.4.2 Commonly used functions
9.4.3 Registry class
9.4.4 RegistryKey class members
9.5 Summary of this chapter
9.6 Exercises
Chapter 10 Preliminary Web Application Development
10.1 What is a web application?
10.1.1 Web Application Overview
10.1.2 Creating Web Applications
10.2 Designing Web Forms
10.2.1 Components of Web Forms
10.2.2 Project files created by Web forms
10.2.3 Compilation and deployment of web projects
10.2.4 Compiling and running Web Forms pages
10.3 Summary of this chapter
10.4 Computer exercises
10.5 Exercises
Appendix A Installing and uninstalling Visual Studio.NET
A1 Visual Studio.NET system requirements
A2 Install Visual Studio.NET
A3 Uninstall Visual Studio.NET
Appendix B VB.NET Error and Exception Handling
B1 error type
B2 Changes in exception handling in VB.NET
B3 Exception Handling Introduction
B4 Structured Exception Handling
B5 Unstructured Exception Handling
Appendix C VB 6.0 project migration to VB.NET
C1 upgrade tool
The necessity of C2 upgrade
Things to note before upgrading C3
C4 Upgrade Application Preparation
C5 Upgrade the project using the upgrade wizard
C6 completes the upgrade process
C7 View upgrade report
C8 Upgrade project from command line
C9 Preface to troubleshooting applications upgraded from VB 6.0
Expand