Visual Basic 2010 offers a great deal of functionality in both tools and language. No one book could ever cover Visual Basic 2010 in its entirety-you would need a library of books. What this book aims to do is to get you started as quickly and easily as possible. It shows you the roadmap, so to speak, of what there is and where to go. Once we've taught you the basics of creating working applications (creating the windows and controls, how your code should handle unexpected events, what object-oriented programming is, how to use it in your applications, and so on) we'll show you some of the areas you might want to try your hand at next.



Autorentext

Thearon Willis is an author or coauthor of nearly a dozen books and a senior consultant who develops intranet applications using ASP.NET, DHTML, XML, JavaScript, VBScript, VB COM components, and SQL Server.

Bryan Newsome is an author or coauthor of??many books and works for a Microsoft Partner in Charlotte specializing in Custom Software Solutions. He provides clients with solutions and mentoring on leading-edge Microsoft technologies.

Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.

Klappentext

Visual Basic 2010 offers a great deal of functionality in both
tools and language. No one book could ever cover Visual Basic 2010
in its entirety--you would need a library of books. What this
book aims to do is to get you started as quickly and easily as
possible. It shows you the roadmap, so to speak, of what there is
and where to go. Once we've taught you the basics of creating
working applications (creating the windows and controls, how your
code should handle unexpected events, what object-oriented
programming is, how to use it in your applications, and so on)
we'll show you some of the areas you might want to try your
hand at next.



Inhalt

Introduction xxix

Chapter 1: Welcome to Visual Basic 2010 1

Event-Driven Programming 2

Installing Visual Basic 2010 3

The Visual Studio 2010 IDE 6

The Profile Setup Page 7

The Menu 7

The Toolbars 9

Creating a Simple Application 10

Windows in the Visual Studio 2010 IDE 11

The Toolbox 13

Modified Hungarian Notation 15

The Code Editor 16

Using the Help System 20

Summary 20

Chapter 2: The Microsoft .Net Framework 23

Microsoft's Reliance on Windows 23

MSN 1.0 24

The .NET Vision 25

This Sounds Like Java 26

Where Now? 27

Writing Software for Windows 27

The .NET Framework Classes 28

Executing Code 29

Common Language Runtime 30

Code Loading and Execution 31

Application Isolation 31

Security 31

Interoperability 32

Exception Handling 32

The Common Type System and Common Language Specification 33

Summary 33

Chapter 3: Writing Software 37

Information and Data 37

Algorithms 38

What is a Programming Language? 39

Working with Variables 39

Comments and Whitespace 42

Comments 42

Whitespace 43

Data Types 44

Working with Numbers 44

Common Integer Math Operations 45

Integer Math Shorthand 47

The Problem with Integer Math 48

Floating-Point Math 49

Other States 51

Single-Precision Floating-Point Numbers 51

Working with Strings 51

Concatenation 53

Using the Concatenation Operator Inline 54

More String Operations 54

Substrings 55

Formatting Strings 56

Localized Formatting 58

Replacing Substrings 58

Using Dates 59

Formatting Date Strings 60

Extracting Date Properties 61

Date Constants 62

Defining Date Literals 63

Manipulating Dates 64

Boolean 65

Storing Variables 65

Binary 66

Bits and Bytes 66

Representing Values 67

Converting Values 68

Methods 70

Why Use Methods? 70

Methods You've Already Seen 71

Building a Method 75

Choosing Method Names 77

Scope 78

Summary 80

Chapter 4: Controlling the Flow 83

Making Decisions 83

The If Statement 84

The Else Statement 86

Allowing Multiple Alternatives with ElseIf 86

Nested If Statements 88

Single-Line If Statement 88

Comparison Operators 88

Using Not Equal To 88

Using the Numeric Operators 90

The And and Or Operators 93

Using the And Operator 95

More on And and Or 96

String Comparison 97

Select Case 98

Case-Insensitive Select Case 101

Multiple Selections 104

The Case Else Statement 105

Different Data Types with Select Case 105

Loops 106

The For ... Next Loop 106

Using the Step Keyword 108

Looping Backwards 109

The For Each ... Next Loop 110

The Do ... Loop Loops 111

Do While ... Loop 113

Acceptable Expressions for a Do ... Loop 114

Other Versions of the Do ... Loop 114

Nested Loops 115

Quitting Early 117

<...
Titel
Beginning Visual Basic 2010
EAN
9781118057278
ISBN
978-1-118-05727-8
Format
E-Book (epub)
Hersteller
Herausgeber
Veröffentlichung
14.01.2011
Digitaler Kopierschutz
Adobe-DRM
Dateigrösse
15.7 MB
Anzahl Seiten
724
Jahr
2011
Untertitel
Englisch