Publishers of technology books, eBooks, and videos for creative people
Visual Basic .NET for Windows: Visual QuickStart Guide provides the key to unlocking the power of the .NET Framework. Using task-based instruction and plenty of visual aids, veteran author Harold Davis provides you with all the information you need to start creating componentized, reusable code and building Web services with VB .NET. Unlike other books available on the topic, which treat VB .NET more like the next version of Visual Basic, this book emphasizes the totally new object-oriented programming paradigm of .NET. It begins by introducing you to the Visual Studio development environment and demonstrating how to create a Web service, then moves on to working with classes and using Windows forms. As your knowledge grows, the tasks become more complex, and by the end of the book you¿ll have learned how to create controls that accept user input, write code that responds to events, work with XML, use the Object Browser, create ASP.NET Web applications, and more.
Source Code Files
Use the links below to download the source code for each chapter. A dialog will appear asking whether you want to Open or Save the file. Select Save, and choose a location for the source code (you might want to create a separate directory for the source code for each chapter).
Chapter 2 source code
Source code for entire book (all chapters) | 904K
Each chapter's source code files are contained in a Zip archive. Once you have saved the archive on your hard drive, you will need to use a utility such as WinZip to extract the source code so you can use it. If you do not already have it, you can download a copy of WinZip from http://www.winzip.com/.
Once you have extracted a source code archive, you will need to open it in Visual Basic .NET. To do this, follow the instructions in the task "To open an existing project" on page 5 in Chapter 1, "Introducing Visual Studio .NET." (You'll find a great deal of general information on the mechanics of working with Visual Basic .NET solutions and projects in Chapter 1.)
Tip
Chapter 3 source code
Chapter 4 source code
Chapter 5 source code
Chapter 6 source code
Chapter 7 source code
Chapter 8 source code
Chapter 9 source code
Chapter 10 source code
Chapter 11 source code
Chapter 12 source code
Chapter 13 source code
Chapter 14 source code
Chapter 15 source code
Chapter 16 source code
Appendix C source code
Listing 8.3 left out the line of code necessary to show the correct
number
of child forms on the parent form status bar. Here is part of Listing
8.3
with the line correctly inserted:
Private Sub Renumber()
Dim frmArray....
frmArray = ...
Dim i, j as integer
For i = 0 to theDad....
if (frmArray(i) is Me) ...
j = i
Exit for
End if
Next i
For i = j + 1 to ...
frmArray(i).Text = ....
Next i
' the following statement is missing
theDad.WriteStatus()
End Sub