Beginning Microsoft Visual Basic 2008 is designed to teach you how to write useful programs in Visual Basic 2008 as quickly and easily as possible.
There are two kinds of beginners for whom this book is ideal:
You’re a beginner to programming and you’ve chosen Visual Basic 2008 as the place to start. That’s a great choice! Visual Basic 2008 is not only easy to learn, it’s also fun to use and very powerful.
You can program in another language but you’re a beginner to .NET programming. Again, you’ve made a great choice! Whether you’ve come from Fortran or Visual Basic 6, you’ll find that this book quickly gets you up to speed on what you need to know to get the most from Visual Basic 2008.
Visual Basic 2008 offers a great deal of functionality in both tools and language. No one book could ever cover Visual Basic 2008 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. To this end, the book is organized as follows:
Chapters 1 through 9 provide an introduction to Visual Studio 2008 and Windows programming.
Chapter 6 provides an introduction to XAML and Windows Presentation Foundation (WPF) programming.
Chapter 10 provides an introduction to application debugging and error handling.
Chapters 11 through 13 provide an introduction to object-oriented programming and building objects.
Chapter 14 provides an introduction to creating Windows Forms user controls.
Chapter 15 provides an introduction to graphics in Windows applications.
Chapters 16 and 17 provide an introduction to programming with databases and covers Access, SQL Server, ADO.NET and LINQ.
Chapters 18 and 19 provide an introduction to ASP.NET and show you how to write applications for the Web.
Chapter 20 provides a brief introduction to XML, a powerful tool for integrating your applications—regardless of the language they were written in.
Chapter 21 introduces you to web services and the Windows Communication Foundation (WCF).
Chapter 22 introduces you to sequential workflows using the Windows Workflow Foundation (WF).
Chapter 23 introduces you to building applications for mobile devices using the Compact Framework classes.
Chapter 24 introduces you to deploying applications using ClickOnce technology.
Chapter 25 provides some insight on where to go next in your journey to learn about VisualBasic 2008.
Appendix A provides the answers to chapter exercises.
Appendix B introduces the Microsoft Solution Framework.
Appendix C provides some background on security.
Appendix D provides insight into Windows CardSpace.
Appendix E compares the differences between the latest versions of the .NET Framework.
Chapter 1: Welcome to Visual Basic 2008.
Chapter 2: The Microsoft .NET Framework.
Chapter 3: Writing Software.
Chapter 4: Controlling the Flow.
Chapter 5: Working with Data Structures.
Chapter 6: Extensible Application Markup Language (XAML).
Chapter 7: Building Windows Applications.
Chapter 8: Displaying Dialog Boxes.
Chapter 9: Creating Menus.
Chapter 10: Debugging and Error Handling.
Chapter 11: Building Objects.
Chapter 12: Advanced Object-Oriented Techniques.
Chapter 13: Building Class Libraries.
Chapter 14: Creating Windows Forms User Controls.
Chapter 15: Programming Custom Graphics.
Chapter 16: Accessing Databases.
Chapter 17: Database Programming with SQL Server and ADO.NET.
Chapter 18: ASP.NET.
Chapter 19: Web Projects.
Chapter 20: Visual Basic 2008 and XML.
Chapter 21: Distributed Computing with Windows Communication Foundation.
Chapter 22: Building a Sequential Workflow Using the Windows Workflow Foundation.
Chapter 23: Building Mobile Applications.
Chapter 24: Deploying Your Application.
Chapter 25: Where to Now?
Appendix A: Exercise Solutions.
Appendix B: Using the Microsoft Solutions Framework.
Appendix C: An Introduction to Code Security and SSL.
Appendix D: An Introduction to Windows CardSpace.
Appendix E: .NET Framework Differences.
|Read Me file||Download|
|Chapter 1 code||Download|
|Chapter 3 code||Download|
|Chapter 4 code||Download|
|Chapter 5 code||Download|
|Chapter 6 code||Download|
|Chapter 7 code||Download|
|Chapter 8 code||Download|
|Chapter 9 code||Download|
|Chapter 10 code||Download|
|Chapter 11 code||Download|
|Chapter 12 code||Download|
|Chapter 13 code||Download|
|Chapter 14 code||Download|
|Chapter 15 code||Download|
|Chapter 16 code||Download|
|Chapter 17 code||Download|
|Chapter 18 code||Download|
|Chapter 19 code||Download|
|Chapter 20 code||Download|
|Chapter 21 code||Download|
|Chapter 22 code||Download|
|Chapter 23 code||Download|
|Chapter 24 code||Download|
|Code for Entire Book||Download|
|4||Error in Code|
the sample code that is provided should contain a greater than or equal to operator in the second IF statement.
|50||Error in Code|
Highlighted code comment "Delcare variable" should be "Declare variable"
|98||Error in Code|
the code area reads:
'Is intNumber greater than or equal to 27? If intNumber = 27 Then MessageBox.Show("Is 'intNumber' greater than or qual to 27? Yes!", "if Demo") Else MessageBox.Show("is 'intNumber' greater than or qual to 27? No!", "If Demo") End If
The operator is wrong.
If intNumber = 27 Then
If intNumber >= 27 Then
|5||171||Error in Text|
Click the Test button
Click the List Customer button
|192||Error in Try It Out|
In Step 6 of the Try It Out on page 192, the reader is asked to set the Height property twice (to two different values: 185 and 200):
The height of the image should be 185. The second height should not be there.
|245||Error in Text|
In the Try It Out, point number 2:
'Update the status bar text
StatusText = "The text is read"<---- *
This should be "Red" NOT "Read."
|12||408||Error in Text|
document.getElementById("lblClient").innerHTML = "Changed";
document.getElementById("lblServer").innerHTML = "Server";
inside of the btnClient_onclick() event.
|636||Alternate Version of Text|
On line 16:
To the Red subfolder, add three new text files.
text files could also be skin files.
|627||Error in Text|
|640||Error in Text|
The page directive is not consistent with the How It Works example on page 644.
To be consistent, it would be
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" MasterPageFile="~/MasterPage.master" Theme="Red"
|644||Error in Code|
The code for News.aspx does not need the <hr/><br/>.
|650||Error in Text|
turns on sorting
turns on paging
|650||Error in Text|
turns on sorting
auto generate columns