Beginning Microsoft Visual Basic 2008
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 entiretyyou 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 applicationsregardless 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.
Bryan Newsome works as a director for a custom software solutions company specializing in Microsoft applications. Since starting his career building Visual Basic 5 solutions, he has embraced each new version Visual Basic and now creates all new solutions leveraging the .NET platform and VB.NET. He provides clients with solutions and mentoring on leading - edge Microsoft technologies. For VB.NET, Bryan is a Microsoft Certified Application Developer.
|Read Me file||185 bytes||Click to Download|
|Chapter 1 code||126.33 KB||Click to Download|
|Chapter 3 code||586.16 KB||Click to Download|
|Chapter 4 code||464.81 KB||Click to Download|
|Chapter 5 code||410.04 KB||Click to Download|
|Chapter 6 code||387.87 KB||Click to Download|
|Chapter 7 code||746.53 KB||Click to Download|
|Chapter 8 code||574.29 KB||Click to Download|
|Chapter 9 code||245.49 KB||Click to Download|
|Chapter 10 code||228.12 KB||Click to Download|
|Chapter 11 code||177.65 KB||Click to Download|
|Chapter 12 code||858.95 KB||Click to Download|
|Chapter 13 code||875.76 KB||Click to Download|
|Chapter 14 code||416.92 KB||Click to Download|
|Chapter 15 code||167.04 KB||Click to Download|
|Chapter 16 code||1.92 MB||Click to Download|
|Chapter 17 code||246.57 KB||Click to Download|
|Chapter 18 code||23.02 KB||Click to Download|
|Chapter 19 code||242.61 KB||Click to Download|
|Chapter 20 code||156.95 KB||Click to Download|
|Chapter 21 code||55.58 KB||Click to Download|
|Chapter 22 code||132.59 KB||Click to Download|
|Chapter 23 code||48.00 KB||Click to Download|
|Chapter 24 code||833.85 KB||Click to Download|
|Code for Entire Book||9.74 MB||Click to Download|
Do you think you've discovered an error in this book? Please check the list of errata below to see if we've already addressed the error. If not, please submit the error via our Errata Form. We will attempt to verify your error; if you're right, we will post a correction below.
|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