Microsoft Visual Basic 2005 Step by Step (Step by Step (Microsoft))

Chapter 5

Visual Basic Variables and Formulas, and the .NET Framework

After completing this chapter, you will be able to:

In Part I, you learned how to create the user interface of a Microsoft Visual Basic 2005 program and how to build and run a program in the Microsoft Visual Studio 2005 development environment. In the nine chapters in Part II, you'll learn more about Visual Basic program code—the statements and keywords that form the core of a Visual Basic program. You'll learn how to manage information within programs and control how your code is executed, and you'll learn how to use decision structures, loops, timers, arrays, collections, and text files. You'll also learn how to debug your programs and handle run-time errors if they occur. After you complete Part II, you'll be ready for more advanced topics, such as customizing the user interface, database programming, and Web programming.

In this chapter, you'll learn how to use variables and constants to store data temporarily in your program, and how to use the InputBox and MsgBox functions to gather and present information by using dialog boxes. You'll also learn how to use functions and formulas to perform calculations, and how to use mathematical operators to perform tasks such as multiplication and string concatenation. Finally, you'll learn how to tap into the powerful classes and methods of the Microsoft .NET 2.0 Framework to perform mathematical calculations and other useful work.

Upgrade Notes: Migrating Visual Basic 6 Code to Visual Basic 2005

If you're experienced with Microsoft Visual Basic 6, you'll notice some new features in Visual Basic 2005, including the following:

Категории