Beginning Microsoft Visual basic 2008:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Indianapolis, IN
Wiley
2008
|
Schriftenreihe: | Wrox programmer to programmer
|
Schlagworte: | |
Online-Zugang: | Publisher description Table of contents only Contributor biographical information Inhaltsverzeichnis |
Beschreibung: | XXXI, 876 S. Ill. |
ISBN: | 9780470191347 |
Internformat
MARC
LEADER | 00000nam a2200000zc 4500 | ||
---|---|---|---|
001 | BV035089325 | ||
003 | DE-604 | ||
005 | 20081127 | ||
007 | t | ||
008 | 081008s2008 xxua||| |||| 00||| eng d | ||
010 | |a 2008004982 | ||
020 | |a 9780470191347 |9 978-0-470-19134-7 | ||
035 | |a (OCoLC)192045573 | ||
035 | |a (DE-599)BVBBV035089325 | ||
040 | |a DE-604 |b ger |e aacr | ||
041 | 0 | |a eng | |
044 | |a xxu |c US | ||
049 | |a DE-898 | ||
050 | 0 | |a QA76.73.B3 | |
082 | 0 | |a 005.2768 | |
082 | 0 | |a 005.2/762 | |
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Willis, Thearon |e Verfasser |4 aut | |
245 | 1 | 0 | |a Beginning Microsoft Visual basic 2008 |c Thearon Willis and Bryan Newsome |
264 | 1 | |a Indianapolis, IN |b Wiley |c 2008 | |
300 | |a XXXI, 876 S. |b Ill. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Wrox programmer to programmer | |
630 | 0 | 4 | |a Microsoft Visual BASIC |
650 | 4 | |a BASIC (Lenguaje de programación para computadora) | |
650 | 4 | |a BASIC (Computer program language) | |
700 | 1 | |a Newsome, Bryan |e Sonstige |4 oth | |
856 | 4 | |u http://www.loc.gov/catdir/enhancements/fy0810/2008004982-d.html |3 Publisher description | |
856 | 4 | |u http://www.loc.gov/catdir/enhancements/fy0810/2008004982-t.html |3 Table of contents only | |
856 | 4 | |u http://www.loc.gov/catdir/enhancements/fy0834/2008004982-b.html |3 Contributor biographical information | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016757466&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-016757466 |
Datensatz im Suchindex
_version_ | 1804138045544333312 |
---|---|
adam_text | Beginnlng
Microsoft* Visual Basic9 2008
Acknowledgments xi
Introduction xxvii
Chapter 1: Welcome to Visual Basic 2008 1
Chapter 2: The Microsoft .NET Framework 25
Chapter 3: Writing Software 37
Chapter 4: Controlling the Flow 87
Chapter 5: Worklng wlth Data Structures 133
Chapter 6: Extensible Application Markup Language (XAML) 185
Chapter 7: Building Windows Applications 211
Chapter 8: Displaying Dialog Boxes 257
Chapter 9: Creating Menüs 301
Chapter 10: Debugglng and Error Handllng 325
Chapter 11: Bullding Objects 363
Chapter 12: Advanced Object-Oriented Techniques 403
Chapter 13: Bullding Class Libraries 439
Chapter 14: Creating Windows Forms User Controls 457
Chapter 15: Programming Custom Graphics 485
Chapter 16: Accessing Databases 535
Chapter 17: Database Programming wlth SQL Server and ADO.NET 555
Chapter 18: ASP.NET 617
Chapter 19: Web Projects 653
Chapter 20: Visual Basic 2008 and XML 677
Chapter 21: Dlstributed Computing wlth Windows
Communication Foundation 717
Chapter 22: Building a Sequential Workflow Using the Windows
Workflow Foundation 737
Chapter 23: Bullding Mobile Applications 755
Chapter 24: Deploying Your Application 775
Chapter 25: Where to Now? 793
(Contlnued)
I
Appendix A: Exercise Solutions 797 ,
Appendix B: Using the Microsoft Solutions Framework 827
Appendix C: An Introduction to Code Security and SSL 835
Appendix D: An Introduction to Windows CardSpace 841
Appendix E: .NET Framework Differences 849
Index 853
Contents
Acknowledgments xi
Introduction xxvii
Qhapter 1: Welcome to Visual Basic 2008 1
Event-Driven Programming 2
Installing Visual Basic 2008 3
The Visual Basic 2008 IDE 7
The Profile Setup Page 7
The Menü 8
The Toolbars 9
Creating a Simple Application 10
The Toolbox 14
Modified Hungarian Notation 18
The Code Editor 19
Using the Help System 23
Summary 24
Exercise 24
Chapter 2: The Microsoft .NET Framework 25
Microsoft s Rellance on Windows 25
MSN 1.0 26
The .NET Vision 27
This Sounds like Java 28
Where Now? 29
Writing Software for Windows 29
The .NET Framework Classes 30
Executing Code 31
Common Language Runtlme 32
Code Loading and Execution 33
Application Isolation 33
Security 33
Interoperation 34
Exception Handling 34
The Common Type System and Common Language Speciflcation 35
Summary 35
£hapi£L3: Writing Software 31
Information and Data 37
Algorithms 38
What Is a Programming Language? 39
Working with Variables 39
Comments and Whitespace 42
Comments 42
Whitespace 44
Data Types 44
Working with Numbers 45
Common Integer Math Operations 45
Integer Math Shorthand 48
Working with Strings 52
Using Dates 61
Boolean 68
Storing Variables 69
Binary 69
Bits and Bytes 70
Representing Values 70
Converting Values 72
Methods 73
Why Use Methods? 74
Methods You ve Already Seen 75
Building a Method 78
Choosing Method Names 81
Scope 82
Summary 84
Exercises 85
Chaptex_4: ControllinglheJlQw 81
Making Decisions 87
The If Statement 88
The Else Statement 90
Allowing Multiple Alternatives with Eiself 91
Nested If Statements 92
Single-Line If Statement 92
Comparison Operators 93
String Comparison 103
Select Case 105
Case-Insensitive Select Case 108
Multiple Selections 112
The Case Else Statement 113
Different Data Types with Select Case 114
Loops 114
The For. . . Next Loop 115
The For Each . . . Next Loop 120
The Do ... Loop Loops 121
Nested Loops 127
Quitting Early 128
Infinite Loops 131
Summary 132
Exercises 132
Chapter 5: Working wlth Data Structures 133
Understanding Arrays 133
Defining and Using Arrays 134
Using For Each . . . Next 137
Passing Arrays as Parameters 139
Sorting Arrays 142
Going Backwards 143
Initializing Arrays with Values 144
Understanding Enumerations 145
Using Enumerations 145
Determining the State 150
Setting Invalid Values 152
Understanding Constants 153
Using Constants 153
Different Constant Types 155
Structures 155
Building Structures 156
Adding Properties to Structures 159
Working wlth ArrayUsts 160
Using an ArrayList 160
Deleting from an ArrayList 164
Showing Items in the ArrayList 167
Working wlth Collectlons 168
Creating CustomerCollection 169
Adding an Item Property 170
Building Lookup Tables with Hashtable 172
Using Hashtables 172
Cleaning Up: Remove, RemoveAt, and Clear 176
Case Sensitivity 178
Advanced Array Manipulation 180
Dynamic Arrays 180
Using Preserve 182
Summary 183
Exercises 184
Chapter 6: Extensible Application Markup Language (XAMÜ 185
What Is XAML? 185
XAML Syntax 187
Windows Presentation Foundation 190
Creating a Rieh WPF User Interface 191
Using WPF Common Controls 197
Wiring Up Events 205
Summary 209
Exercise 209
Chapter 7: Building Windows Applications 211
Responding to Events 211
Setting Up a Button Event 212
Building a Simple Application 219
Building the Form 219
Counting Characters 223
Counting Words 226
Creating More Complex Applications 232
The Text Editor Project 232
Creating the Toolbar 233
Creating the Status Bar 238
Creating an Edit Box 240
Clearing the Edit Box 242
Responding to Toolbar Buttons 244
Using Multiple Forms 251
The About Dialog Box 251
Summary 255
Exercises 255
Chapter 8: Displaying Dialog Boxes 252
The MessageBox Dialog Box 257
Available Icons for MessageBox 258
Available Buttons for MessageBox 259
Setting the Default Button 259
Miscellaneous Options 260
The Show Method Syntax 260
Example Message Boxes 262
The OpenDialog Control 265
The OpenFileDialog Control 265
The Properties of OpenFileDialog 266
The Methods of OpenFileDialog 267
Using the OpenFileDialog Control 268
The SaveDialog Control 273
The Properties of SaveFileDialog 273
The Methods of SaveFileDialog 274
Using the SaveFileDialog Control 274
The FontDIalog Control 278
The Properties of FontDialog 278
The Methods of FontDialog 279
Using the FontDialog Control 279
The ColorDlalog Control 282
The Properties of ColorDialog 283
Using the ColorDialog Control 284
The PrintDialog Control 285
The Properties of PrintDialog 286
Using the PrintDialog Control 286
The PrintDocument Class 287
Printing a Document 287
The FolderBrowserDialog Control 294
The Properties of FolderBrowserDialog 295
Using the FolderBrowserDialog Control 295
Summary 298
Exercises 299
Chapter 9: Creating Mengs 301
Understanding Menü Features 301
Images 302
Access Keys 302
Shortcut Keys 302
Check Marks 302
The Properties Window 303
Creating Menüs 304
Designing the Menüs 304
Adding Toolbars and Controls 306
Coding Menüs 308
Coding the View Menü and Toolbars 312
Testing Your Code 314
Context Menüs 316
Creating Context Menüs 317
Enabling and Disabling Menü Items and Toolbar Buttons 320
Summary 324
Exercise 324
Chapter 10: Debugglng and Error Handllng 325
Major Error Types 326
Syntax Errors 326
Execution Errors 329
Logic Errors 329
Debugging 331
Creating a Sample Project 331
Setting Breakpoints 347
Debugging Using the Watch Window 354
Debugging with the Locals Window 356
Error Handling 358
Using Structured Error Handling 359
Summary 361
Exercises 362
Chapter 11: Building Objects 363
Understanding Objects 363
Encapsulation 365
Methods and Properties 365
Events 365
Visibility 366
What Is a Class? 367
Building Classes 367
Reusability 368
Designing an Object 369
State 370
Behavior 370
Storing State 371
Real Properties 374
Read/Write Properties 377
The IsMoving Method 380
Constructors 382
Inheritance 384
Adding New Methods and Properties 385
Adding a GetPowerToWeightRatio Method 387
Changing Defaults 389
Polymorphism: Scary Word, Simple Concept 391
Overriding More Methods 392
Inheriting from the Object Class 394
Objects and Structures 395
The Framework Classes 396
Namespaces 396
The Imports Statement 398
Creating Your Own Namespace 399
Inheritance in the .NET Framework 401
Summary 402
Exercises 402
Chaptor 121 Advanced Object-Oriented Technlques 403
Building a Favorites Viewer 403
Internet Shortcuts and Favorites 404
Using Classes 407
Scanning Favorites 413
Viewing Favorites 420
An Alternative Favorite Viewer 422
Building a Favorites Tray 422
Displaying Favorites 424
Using Shared Properties and Methods 428
Using Shared Procedures 428
Using Shared Methods 433
Understanding Object-Oriented Programming and Memory Management 434
Garbage Collection 435
Releasing Resources 436
Defragmentation and Compaction 437
Summary 438
Exercise 438
Chapter 13: Building Class Libraries 439
Understanding Class Libraries 440
Creating a Class Library 440
Building a Class Library for Favorites Viewer 442
A Multitiered Application 445
Using Strang Names 446
Signing Assemblies 447
Assembly Versions 449
Registering Assemblies 449
Gacutil Utility 450
Why Is My Assembly Not Visible in the References Dialog Box? 450
Designing Class Libraries 452
Using Third-Party Class Libraries 453
Viewing Classes with the Object Browser 454
Summary 455
Exercise 455
Chapter 14: Creating Windows Forms User Controls 457
Windows Forms Controls 458
Creating and Testing a User Control 458
Exposing Properties from User Controls 462
Adding Properties 462
Exposing Methods from User Controls 464
Exposing Events from User Controls 465
Design Time or RunTime 470
Creating a Command Link Control 472
Building the Command Link Control 473
Using the Command Link Control 481
Summary 484
Exercise 484
Chapter 15: Programming Custom Graphics 485
Building a Simple Paint Program 485
Creating a Project with User Controls 486
How Drawing Programs Work 486
The Graphicsltem Class 488
Screen and Client Coordinates 490
Listening to the Mouse and Drawing GraphicsCircle Objects 491
Invalidation 496
Optimized Drawing 497
Choosing Colors 498
Responding to Clicks 504
Dealing with Two Colors 507
Indicating the Assigned Buttons 509
Using Advanced Colors 516
Using Different Tools 520
Implementing Hollow Circle 521
Working wlth Images 525
Drawing Images 526
Scaling Images 528
Preserving the Aspect Ratio 530
More Graphics Methods 533
Summary 533
Chapter 16: Accessing Databases 535
What Is a Database? 535
Microsoft Access Objects 536
Tables 536
Queries 536
The SQL SELECT Statement 537
Queries in Access 539
Creating a Customer Query 539
Data Access Components 543
DataSet 544
DataGridView 544
BindingSource 545
BindingNavigator 545
TableAdapter 545
Data Blnding 546
Summary 552
Exerclses 553
Chapter 17: Database Programming wlth SQL Server and AD0.NET 555
ADO.NET 556
ADO.NET Data Namespaces 557
The SqlConnection Class 558
SqlCommand 560
SqlDataAdapter 562
The DataSet Class 566
DataView 567
The ADO.NET Classes in Action 570
Examining a DataSet Example 57°
Data Binding 578
BindingContext and CurrencyManager 579
Binding Controls 58°
LINQ to SQL 610
Summary 614
Exercises 615
Chapter 18: ASP.NET 61Z
Thin-Client Architecture 618
Web Forms versus Windows Forms 619
Windows Forms Advantages 619
Web Forms Advantages 619
Web Applications: The Basic Pieces 620
Web Servers 620
Browsers 620
Hypertext Markup Language 620
VBScript and JavaScript 621
Cascading Style Sheets 621
Active Server Pages 621
Benefits of ASP.NET Web Pages 622
Special Web Site Files 622
Development 622
Controls: The Toolbox 623
Building Web Applications 623
Creating a Web Form for Client- and Server-Side Processing 623
Web Site Locations with VS 2008 628
Performing Data Entry and Validation 630
Designing the Site s Look and Feel 635
Using the GridView to Build a Data-Driven Web Form 645
Summary 651
Exercises 651
Charter 19: Web Projects 653
Web Site Authentication 653
Windows Authentication 654
Forms Authentication 654
Web Site Administration Tool (WAT) 654
Login Controls 662
Summary 675
Exerclses 675
Chapter 20: Visual Basic 2008 and XML 612
Understanding XML 677
What Does XML Look Like? 678
XML for Visual Basic Newcomers 680
The Address Book Project 681
Creating the Project 681
The SerializableData Class 682
Loading the XML File 688
Changing the Data 691
Sending E-mail 692
Creating a List of Addresses 694
Ignoring Members 698
Loading Addresses 701
Adding New Addresses 702
Navigating Addresses 704
Deleting Addresses 705
Integrating with the Address Book Application 707
Demonstrating the Principle of Integration 708
Reading the Address Book from Another Application 709
Summary 714
Exercises 715
Chapter 21: Distributed Computing with Windows
Communlcation Foundation 717
What Is a Web Service? 717
How Does a Web Service Work? 718
SOAP 719
Building a Web Service 721
A Web Services Demonstration 721
Adding More Methods 724
Understanding WCF Services 726
WCF Services 726
Summary 735
Exercises 735
Chapter 22: Building a Sequential Workflow Using the Windows
Workflow Foundation Z3I
Visual Studio Workflow Templates 739
Workflow Foundation Components 740
Sequential Workflow Activities 740
Creating a Sequential Worklow 741
Property Tax Listing Form Workflow 744
Summary 753
Exercises 753
Chapter 23: Building Mobile Applications Z55
Understanding the Environment 755
Common Language Runtime 756
ActiveSync and Windows Mobile Device Center 756
Common Types in the Compact Framework 758
The Compact Framework Classes 759
Building a Pocket PC Game 761
Summary 773
Exercise 773
Chapter 24; Peploying Your Application Z25
What Is Deployment? 775
ClickOnce Deployment 776
XCOPY Deployment 781
Creating a Visual Studio 2008 Setup Application 781
User Interface Editor 785
Deploying Different Solutions 788
Private Assemblies 789
Shared Assemblies 789
Deploying Desktop Applications 790
Deploying Web Applications 790
: Deploying XML Web Services 790
I Useful Tools 791
J Summary 791
Exercises 792
Chapter 25: Where to Now? 793
Online Resources 794
P2P.Wrox.com 794
Microsoft Resources 794
Other Resources 795
Offline Resources (Books) 795
Professional Visual Basic 2008 795
Visual Basic 2008 Programmer s Reference 796
Appendix A: Exerclse Solutions 797
Appendix B: Uslng the Microsoft Solutions Framework 827
Appendix C: An Introductlon to Code Securlty and SSL 835
Appendix D: An Introductlon to Windows CardSpace 841
Appendix E: .NET Framework Dlfferences 849
Index 853
|
adam_txt |
Beginnlng
Microsoft* Visual Basic9 2008
Acknowledgments xi
Introduction xxvii
Chapter 1: Welcome to Visual Basic 2008 1
Chapter 2: The Microsoft .NET Framework 25
Chapter 3: Writing Software 37
Chapter 4: Controlling the Flow 87
Chapter 5: Worklng wlth Data Structures 133
Chapter 6: Extensible Application Markup Language (XAML) 185
Chapter 7: Building Windows Applications 211
Chapter 8: Displaying Dialog Boxes 257
Chapter 9: Creating Menüs 301
Chapter 10: Debugglng and Error Handllng 325
Chapter 11: Bullding Objects 363
Chapter 12: Advanced Object-Oriented Techniques 403
Chapter 13: Bullding Class Libraries 439
Chapter 14: Creating Windows Forms User Controls 457
Chapter 15: Programming Custom Graphics 485
Chapter 16: Accessing Databases 535
Chapter 17: Database Programming wlth SQL Server and ADO.NET 555
Chapter 18: ASP.NET 617
Chapter 19: Web Projects 653
Chapter 20: Visual Basic 2008 and XML 677
Chapter 21: Dlstributed Computing wlth Windows
Communication Foundation 717
Chapter 22: Building a Sequential Workflow Using the Windows
Workflow Foundation 737
Chapter 23: Bullding Mobile Applications 755
Chapter 24: Deploying Your Application 775
Chapter 25: Where to Now? 793
(Contlnued)
I
Appendix A: Exercise Solutions 797 ,
Appendix B: Using the Microsoft Solutions Framework 827
Appendix C: An Introduction to Code Security and SSL 835
Appendix D: An Introduction to Windows CardSpace 841
Appendix E: .NET Framework Differences 849
Index 853
Contents
Acknowledgments xi
Introduction xxvii
Qhapter 1: Welcome to Visual Basic 2008 1
Event-Driven Programming 2
Installing Visual Basic 2008 3
The Visual Basic 2008 IDE 7
The Profile Setup Page 7
The Menü 8
The Toolbars 9
Creating a Simple Application 10
The Toolbox 14
Modified Hungarian Notation 18
The Code Editor 19
Using the Help System 23
Summary 24
Exercise 24
Chapter 2: The Microsoft .NET Framework 25
Microsoft's Rellance on Windows 25
MSN 1.0 26
The .NET Vision 27
This Sounds like Java 28
Where Now? 29
Writing Software for Windows 29
The .NET Framework Classes 30
Executing Code 31
Common Language Runtlme 32
Code Loading and Execution 33
Application Isolation 33
Security 33
Interoperation 34
Exception Handling 34
The Common Type System and Common Language Speciflcation 35
Summary 35
£hapi£L3: Writing Software 31
Information and Data 37
Algorithms 38
What Is a Programming Language? 39
Working with Variables 39
Comments and Whitespace 42
Comments 42
Whitespace 44
Data Types 44
Working with Numbers 45
Common Integer Math Operations 45
Integer Math Shorthand 48
Working with Strings 52
Using Dates 61
Boolean 68
Storing Variables 69
Binary 69
Bits and Bytes 70
Representing Values 70
Converting Values 72
Methods 73
Why Use Methods? 74
Methods You've Already Seen 75
Building a Method 78
Choosing Method Names 81
Scope 82
Summary 84
Exercises 85
Chaptex_4: ControllinglheJlQw 81
Making Decisions 87
The If Statement 88
The Else Statement 90
Allowing Multiple Alternatives with Eiself 91
Nested If Statements 92
Single-Line If Statement 92
Comparison Operators 93
String Comparison 103
Select Case 105
Case-Insensitive Select Case 108
Multiple Selections 112
The Case Else Statement 113
Different Data Types with Select Case 114
Loops 114
The For. . . Next Loop 115
The For Each . . . Next Loop 120
The Do . Loop Loops 121
Nested Loops 127
Quitting Early 128
Infinite Loops 131
Summary 132
Exercises 132
Chapter 5: Working wlth Data Structures 133
Understanding Arrays 133
Defining and Using Arrays 134
Using For Each . . . Next 137
Passing Arrays as Parameters 139
Sorting Arrays 142
Going Backwards 143
Initializing Arrays with Values 144
Understanding Enumerations 145
Using Enumerations 145
Determining the State 150
Setting Invalid Values 152
Understanding Constants 153
Using Constants 153
Different Constant Types 155
Structures 155
Building Structures 156
Adding Properties to Structures 159
Working wlth ArrayUsts 160
Using an ArrayList 160
Deleting from an ArrayList 164
Showing Items in the ArrayList 167
Working wlth Collectlons 168
Creating CustomerCollection 169
Adding an Item Property 170
Building Lookup Tables with Hashtable 172
Using Hashtables 172
Cleaning Up: Remove, RemoveAt, and Clear 176
Case Sensitivity 178
Advanced Array Manipulation 180
Dynamic Arrays 180
Using Preserve 182
Summary 183
Exercises 184
Chapter 6: Extensible Application Markup Language (XAMÜ 185
What Is XAML? 185
XAML Syntax 187
Windows Presentation Foundation 190
Creating a Rieh WPF User Interface 191
Using WPF Common Controls 197
Wiring Up Events 205
Summary 209
Exercise 209
Chapter 7: Building Windows Applications 211
Responding to Events 211
Setting Up a Button Event 212
Building a Simple Application 219
Building the Form 219
Counting Characters 223
Counting Words 226
Creating More Complex Applications 232
The Text Editor Project 232
Creating the Toolbar 233
Creating the Status Bar 238
Creating an Edit Box 240
Clearing the Edit Box 242
Responding to Toolbar Buttons 244
Using Multiple Forms 251
The About Dialog Box 251
Summary 255
Exercises 255
Chapter 8: Displaying Dialog Boxes 252
The MessageBox Dialog Box 257
Available Icons for MessageBox 258
Available Buttons for MessageBox 259
Setting the Default Button 259
Miscellaneous Options 260
The Show Method Syntax 260
Example Message Boxes 262
The OpenDialog Control 265
The OpenFileDialog Control 265
The Properties of OpenFileDialog 266
The Methods of OpenFileDialog 267
Using the OpenFileDialog Control 268
The SaveDialog Control 273
The Properties of SaveFileDialog 273
The Methods of SaveFileDialog 274
Using the SaveFileDialog Control 274
The FontDIalog Control 278
The Properties of FontDialog 278
The Methods of FontDialog 279
Using the FontDialog Control 279
The ColorDlalog Control 282
The Properties of ColorDialog 283
Using the ColorDialog Control 284
The PrintDialog Control 285
The Properties of PrintDialog 286
Using the PrintDialog Control 286
The PrintDocument Class 287
Printing a Document 287
The FolderBrowserDialog Control 294
The Properties of FolderBrowserDialog 295
Using the FolderBrowserDialog Control 295
Summary 298
Exercises 299
Chapter 9: Creating Mengs 301
Understanding Menü Features 301
Images 302
Access Keys 302
Shortcut Keys 302
Check Marks 302
The Properties Window 303
Creating Menüs 304
Designing the Menüs 304
Adding Toolbars and Controls 306
Coding Menüs 308
Coding the View Menü and Toolbars 312
Testing Your Code 314
Context Menüs 316
Creating Context Menüs 317
Enabling and Disabling Menü Items and Toolbar Buttons 320
Summary 324
Exercise 324
Chapter 10: Debugglng and Error Handllng 325
Major Error Types 326
Syntax Errors 326
Execution Errors 329
Logic Errors 329
Debugging 331
Creating a Sample Project 331
Setting Breakpoints 347
Debugging Using the Watch Window 354
Debugging with the Locals Window 356
Error Handling 358
Using Structured Error Handling 359
Summary 361
Exercises 362
Chapter 11: Building Objects 363
Understanding Objects 363
Encapsulation 365
Methods and Properties 365
Events 365
Visibility 366
What Is a Class? 367
Building Classes 367
Reusability 368
Designing an Object 369
State 370
Behavior 370
Storing State 371
Real Properties 374
Read/Write Properties 377
The IsMoving Method 380
Constructors 382
Inheritance 384
Adding New Methods and Properties 385
Adding a GetPowerToWeightRatio Method 387
Changing Defaults 389
Polymorphism: Scary Word, Simple Concept 391
Overriding More Methods 392
Inheriting from the Object Class 394
Objects and Structures 395
The Framework Classes 396
Namespaces 396
The Imports Statement 398
Creating Your Own Namespace 399
Inheritance in the .NET Framework 401
Summary 402
Exercises 402
Chaptor 121 Advanced Object-Oriented Technlques 403
Building a Favorites Viewer 403
Internet Shortcuts and Favorites 404
Using Classes 407
Scanning Favorites 413
Viewing Favorites 420
An Alternative Favorite Viewer 422
Building a Favorites Tray 422
Displaying Favorites 424
Using Shared Properties and Methods 428
Using Shared Procedures 428
Using Shared Methods 433
Understanding Object-Oriented Programming and Memory Management 434
Garbage Collection 435
Releasing Resources 436
Defragmentation and Compaction 437
Summary 438
Exercise 438
Chapter 13: Building Class Libraries 439
Understanding Class Libraries 440
Creating a Class Library 440
Building a Class Library for Favorites Viewer 442
A Multitiered Application 445
Using Strang Names 446
Signing Assemblies 447
Assembly Versions 449
Registering Assemblies 449
Gacutil Utility 450
Why Is My Assembly Not Visible in the References Dialog Box? 450
Designing Class Libraries 452
Using Third-Party Class Libraries 453
Viewing Classes with the Object Browser 454
Summary 455
Exercise 455
Chapter 14: Creating Windows Forms User Controls 457
Windows Forms Controls 458
Creating and Testing a User Control 458
Exposing Properties from User Controls 462
Adding Properties 462
Exposing Methods from User Controls 464
Exposing Events from User Controls 465
Design Time or RunTime 470
Creating a Command Link Control 472
Building the Command Link Control 473
Using the Command Link Control 481
Summary 484
Exercise 484
Chapter 15: Programming Custom Graphics 485
Building a Simple Paint Program 485
Creating a Project with User Controls 486
How Drawing Programs Work 486
The Graphicsltem Class 488
Screen and Client Coordinates 490
Listening to the Mouse and Drawing GraphicsCircle Objects 491
Invalidation 496
Optimized Drawing 497
Choosing Colors 498
Responding to Clicks 504
Dealing with Two Colors 507
Indicating the Assigned Buttons 509
Using Advanced Colors 516
Using Different Tools 520
Implementing Hollow Circle 521
Working wlth Images 525
Drawing Images 526
Scaling Images 528
Preserving the Aspect Ratio 530
More Graphics Methods 533
Summary 533
Chapter 16: Accessing Databases 535
What Is a Database? 535
Microsoft Access Objects 536
Tables 536
Queries 536
The SQL SELECT Statement 537
Queries in Access 539
Creating a Customer Query 539
Data Access Components 543
DataSet 544
DataGridView 544
BindingSource 545
BindingNavigator 545
TableAdapter 545
Data Blnding 546
Summary 552
Exerclses 553
Chapter 17: Database Programming wlth SQL Server and AD0.NET 555
ADO.NET 556
ADO.NET Data Namespaces 557
The SqlConnection Class 558
SqlCommand 560
SqlDataAdapter 562
The DataSet Class 566
DataView 567
The ADO.NET Classes in Action 570
Examining a DataSet Example 57°
Data Binding 578
BindingContext and CurrencyManager 579
Binding Controls 58°
LINQ to SQL 610
Summary 614
Exercises 615
Chapter 18: ASP.NET 61Z
Thin-Client Architecture 618
Web Forms versus Windows Forms 619
Windows Forms Advantages 619
Web Forms Advantages 619
Web Applications: The Basic Pieces 620
Web Servers 620
Browsers 620
Hypertext Markup Language 620
VBScript and JavaScript 621
Cascading Style Sheets 621
Active Server Pages 621
Benefits of ASP.NET Web Pages 622
Special Web Site Files 622
Development 622
Controls: The Toolbox 623
Building Web Applications 623
Creating a Web Form for Client- and Server-Side Processing 623
Web Site Locations with VS 2008 628
Performing Data Entry and Validation 630
Designing the Site's Look and Feel 635
Using the GridView to Build a Data-Driven Web Form 645
Summary 651
Exercises 651
Charter 19: Web Projects 653
Web Site Authentication 653
Windows Authentication 654
Forms Authentication 654
Web Site Administration Tool (WAT) 654
Login Controls 662
Summary 675
Exerclses 675
Chapter 20: Visual Basic 2008 and XML 612
Understanding XML 677
What Does XML Look Like? 678
XML for Visual Basic Newcomers 680
The Address Book Project 681
Creating the Project 681
The SerializableData Class 682
Loading the XML File 688
Changing the Data 691
Sending E-mail 692
Creating a List of Addresses 694
Ignoring Members 698
Loading Addresses 701
Adding New Addresses 702
Navigating Addresses 704
Deleting Addresses 705
Integrating with the Address Book Application 707
Demonstrating the Principle of Integration 708
Reading the Address Book from Another Application 709
Summary 714
Exercises 715
Chapter 21: Distributed Computing with Windows
Communlcation Foundation 717
What Is a Web Service? 717
How Does a Web Service Work? 718
SOAP 719
Building a Web Service 721
A Web Services Demonstration 721
Adding More Methods 724
Understanding WCF Services 726
WCF Services 726
Summary 735
Exercises 735
Chapter 22: Building a Sequential Workflow Using the Windows
Workflow Foundation Z3I
Visual Studio Workflow Templates 739
Workflow Foundation Components 740
Sequential Workflow Activities 740
Creating a Sequential Worklow 741
Property Tax Listing Form Workflow 744
Summary 753
Exercises 753
Chapter 23: Building Mobile Applications Z55
Understanding the Environment 755
Common Language Runtime 756
ActiveSync and Windows Mobile Device Center 756
Common Types in the Compact Framework 758
The Compact Framework Classes 759
Building a Pocket PC Game 761
Summary 773
Exercise 773
Chapter 24; Peploying Your Application Z25
What Is Deployment? 775
ClickOnce Deployment 776
XCOPY Deployment 781
Creating a Visual Studio 2008 Setup Application 781
User Interface Editor 785
Deploying Different Solutions 788
Private Assemblies 789
Shared Assemblies 789
Deploying Desktop Applications 790
Deploying Web Applications 790
: Deploying XML Web Services 790
I Useful Tools 791
J Summary 791
Exercises 792
Chapter 25: Where to Now? 793
Online Resources 794
P2P.Wrox.com 794
Microsoft Resources 794
Other Resources 795
Offline Resources (Books) 795
Professional Visual Basic 2008 795
Visual Basic 2008 Programmer's Reference 796
Appendix A: Exerclse Solutions 797
Appendix B: Uslng the Microsoft Solutions Framework 827
Appendix C: An Introductlon to Code Securlty and SSL 835
Appendix D: An Introductlon to Windows CardSpace 841
Appendix E: .NET Framework Dlfferences 849
Index 853 |
any_adam_object | 1 |
any_adam_object_boolean | 1 |
author | Willis, Thearon |
author_facet | Willis, Thearon |
author_role | aut |
author_sort | Willis, Thearon |
author_variant | t w tw |
building | Verbundindex |
bvnumber | BV035089325 |
callnumber-first | Q - Science |
callnumber-label | QA76 |
callnumber-raw | QA76.73.B3 |
callnumber-search | QA76.73.B3 |
callnumber-sort | QA 276.73 B3 |
callnumber-subject | QA - Mathematics |
classification_rvk | ST 250 |
ctrlnum | (OCoLC)192045573 (DE-599)BVBBV035089325 |
dewey-full | 005.2768 005.2/762 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.2768 005.2/762 |
dewey-search | 005.2768 005.2/762 |
dewey-sort | 15.2768 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
discipline_str_mv | Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01716nam a2200433zc 4500</leader><controlfield tag="001">BV035089325</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20081127 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">081008s2008 xxua||| |||| 00||| eng d</controlfield><datafield tag="010" ind1=" " ind2=" "><subfield code="a">2008004982</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780470191347</subfield><subfield code="9">978-0-470-19134-7</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)192045573</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV035089325</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">aacr</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="044" ind1=" " ind2=" "><subfield code="a">xxu</subfield><subfield code="c">US</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-898</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.73.B3</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.2768</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.2/762</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Willis, Thearon</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Beginning Microsoft Visual basic 2008</subfield><subfield code="c">Thearon Willis and Bryan Newsome</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Indianapolis, IN</subfield><subfield code="b">Wiley</subfield><subfield code="c">2008</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XXXI, 876 S.</subfield><subfield code="b">Ill.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Wrox programmer to programmer</subfield></datafield><datafield tag="630" ind1="0" ind2="4"><subfield code="a">Microsoft Visual BASIC</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">BASIC (Lenguaje de programación para computadora)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">BASIC (Computer program language)</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Newsome, Bryan</subfield><subfield code="e">Sonstige</subfield><subfield code="4">oth</subfield></datafield><datafield tag="856" ind1="4" ind2=" "><subfield code="u">http://www.loc.gov/catdir/enhancements/fy0810/2008004982-d.html</subfield><subfield code="3">Publisher description</subfield></datafield><datafield tag="856" ind1="4" ind2=" "><subfield code="u">http://www.loc.gov/catdir/enhancements/fy0810/2008004982-t.html</subfield><subfield code="3">Table of contents only</subfield></datafield><datafield tag="856" ind1="4" ind2=" "><subfield code="u">http://www.loc.gov/catdir/enhancements/fy0834/2008004982-b.html</subfield><subfield code="3">Contributor biographical information</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016757466&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-016757466</subfield></datafield></record></collection> |
id | DE-604.BV035089325 |
illustrated | Illustrated |
index_date | 2024-07-02T22:10:01Z |
indexdate | 2024-07-09T21:21:57Z |
institution | BVB |
isbn | 9780470191347 |
language | English |
lccn | 2008004982 |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-016757466 |
oclc_num | 192045573 |
open_access_boolean | |
owner | DE-898 DE-BY-UBR |
owner_facet | DE-898 DE-BY-UBR |
physical | XXXI, 876 S. Ill. |
publishDate | 2008 |
publishDateSearch | 2008 |
publishDateSort | 2008 |
publisher | Wiley |
record_format | marc |
series2 | Wrox programmer to programmer |
spelling | Willis, Thearon Verfasser aut Beginning Microsoft Visual basic 2008 Thearon Willis and Bryan Newsome Indianapolis, IN Wiley 2008 XXXI, 876 S. Ill. txt rdacontent n rdamedia nc rdacarrier Wrox programmer to programmer Microsoft Visual BASIC BASIC (Lenguaje de programación para computadora) BASIC (Computer program language) Newsome, Bryan Sonstige oth http://www.loc.gov/catdir/enhancements/fy0810/2008004982-d.html Publisher description http://www.loc.gov/catdir/enhancements/fy0810/2008004982-t.html Table of contents only http://www.loc.gov/catdir/enhancements/fy0834/2008004982-b.html Contributor biographical information HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016757466&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Willis, Thearon Beginning Microsoft Visual basic 2008 Microsoft Visual BASIC BASIC (Lenguaje de programación para computadora) BASIC (Computer program language) |
title | Beginning Microsoft Visual basic 2008 |
title_auth | Beginning Microsoft Visual basic 2008 |
title_exact_search | Beginning Microsoft Visual basic 2008 |
title_exact_search_txtP | Beginning Microsoft Visual basic 2008 |
title_full | Beginning Microsoft Visual basic 2008 Thearon Willis and Bryan Newsome |
title_fullStr | Beginning Microsoft Visual basic 2008 Thearon Willis and Bryan Newsome |
title_full_unstemmed | Beginning Microsoft Visual basic 2008 Thearon Willis and Bryan Newsome |
title_short | Beginning Microsoft Visual basic 2008 |
title_sort | beginning microsoft visual basic 2008 |
topic | Microsoft Visual BASIC BASIC (Lenguaje de programación para computadora) BASIC (Computer program language) |
topic_facet | Microsoft Visual BASIC BASIC (Lenguaje de programación para computadora) BASIC (Computer program language) |
url | http://www.loc.gov/catdir/enhancements/fy0810/2008004982-d.html http://www.loc.gov/catdir/enhancements/fy0810/2008004982-t.html http://www.loc.gov/catdir/enhancements/fy0834/2008004982-b.html http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016757466&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT willisthearon beginningmicrosoftvisualbasic2008 AT newsomebryan beginningmicrosoftvisualbasic2008 |