Skip to main content

Professional VB.NET 2003

Professional VB.NET 2003

Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon

ISBN: 978-0-764-55992-1

Jun 2004

1056 pages

Select type: Paperback

Product not available for purchase

Description

What is this book about?

Microsoft considers Visual Basic.NET to be the language of choice for applications where developer productivity is a top priority. It offers you the ability to program against the .NET Framework, and the most recent version includes tools for programming today’s hot mobile applications. This code-laden reference covers VB.NET 2003 from start to finish.

These pages help you discover how to apply object-oriented concepts in design and development to create effective business applications. You will be able to access data using ADO.NET, integrate VB.NET with XML, create both Windows applications and Web services, and much more. Finally, you explore best practices for deploying .NET applications and understand the power of VB.NET in development that targets the Internet as easily as the desktop.

What does this book cover?

Here are just a few of the things you'll discover in this book: 

  • How to create new namespaces and import and alias existing namespaces within projects
  • Error-handling methods using the Try...Catch...Finally structure
  • How to work with data binding and update the underlying data source in Windows applications
  • Methods for developing multithreaded applications
  • How .NET Remoting is used to exchange serialized objects between clients and servers
  • The differences between Mobile Web and .NET Compact Framework applications

Who is this book for?

This book is for experienced developers who are making the transition to VB.NET or seeking a deeper understanding of the most common VB.NET programming tasks and concepts.

Related Resources

Instructor

Contact your Rep for all inquiries

About the Authors.

Acknowledgments.

Introduction.

Chapter 1: What Is Microsoft .NET?

Chapter 2: Introducing VB.NET and VS.NET.

Chapter 3: The Common Language Runtime.

Chapter 4: Variables and Type.

Chapter 5: Object Syntax Introduction.

Chapter 6: Inheritance and Interfaces.

Chapter 7: Applying Objects and Components.

Chapter 8: Namespaces.

Chapter 9: Error Handling.

Chapter 10: Using XML in VB.NET.

Chapter 11: Data Access with ADO.NET.

Chapter 12: Windows Forms.

Chapter 13: Creating Windows Controls.

Chapter 14: Web Forms.

Chapter 15: Creating Web Controls.

Chapter 16: Data Binding.

Chapter 17: Working with Classic COM and Interfaces.

Chapter 18: Component Services.

Chapter 19: Threading.

Chapter 20: Remoting.

Chapter 21: Windows Services.

Chapter 22: Web Services.

Chapter 23: VB.NET and the Internet.

Chapter 24: Security in the .NET Framework.

Chapter 25: Assemblies and Deployment.

Chapter 26: Mobile Application Development.

Appendix A: Upgrading: Using the Visual Basic Compatibility Library.

Index.

Download the code for chapters 1, 9, 12, 12, 13
Download
Download the code for chapters 2, 3, 4, and 24
Download
Download the code for chapters 8, 10, 16, 22, 23, 24, 25
Download
Download the code for chapter 5
Download
Download the code for chapter 6
Download
Download the code for chapter 7
Download
Download the code for chapter 11
Download
Download the code for chapter 14
Download
Download the code for chapter 15
Download
Download the code for chapter 17
Download
Download the code for chapter 18
Download
Download the code for chapter 19
Download
Download the code for chapter 20
Download
View the correct index for the book.
Download
ChapterPageDetailsDatePrint Run
19Page: 19, location: code example
error_type_in_book: book code error - poor code but runs OK file: error_type_in_download: description: Based on the statement immediately following the code, the C# portion of the example should read: ' Same example in C# Double dblNumber = 200; Double dblSquareRoot; dblSquareRoot = System.Math.Sqrt(dblNumber); label.Text = dblSquareRoot.ToString;
9/29/04

36page: 36, location: last paragraph, 2nd sentence
error_type_in_book: technical text error description: Sentence refers to the incorrect figure. Sentence should re! ad: You'll see the Properties window adjust to display the properties of Form1, as shown in Figure 2-7.
9/29/04

37page: 37, location: 1st complete sentence
error_type_in_book: technical text error description: To accurately reflect the form's caption as shown in Figure 2-9, the sentence should read: For your sample go to the Text property and change the default of Form1 to Professional VB.NET Intro. ( Professional rather than Profession )
9/29/04

433rd paragraph, 3rd sentence.
There is a space missing between the words that and allows .
10/19/04

45-46page: 45-46, location: code example
error_type_in_book: book code error - poor code but runs OK description: The code is not actually in error, but fails to highlight the use of the Imports keyword. Since Imports System.Window.Forms is used at the beginning of the code, the MessageBox.Show() function does not need to be qualified.
9/29/04

53page: 53, location: 7th paragraph, last sentence
error_type_in_book: spelling/grammar file: error_type_in_download: description: The sentence should read: As in previous versions of Visual Studio, this display supports examining the contents of object and array via a tree-control interface. (previous vs. pervious) The error has been submitted for correction.
9/29/04

89Last paragraph, last sentence
A space is missing between the words now and obsolete
10/25/04

102First paragraph under "The UBound function"
The paragraph refers to arrMyIntArray2 three times, however, the last time it is referred to, it is mistyped as arrMyIntArray1 .
11/22/04

120Last paragraph, last sentence
A space is missing between the words code and such .
10/25/04

204-209All code examples
Messagebox.Show was introduced as a replacement for MsgBox . However, MsgBox was re-introduced on page 204 (last code block) and in the subsequent examples through to page 209. Reading on to page 272 Messagebox.Show is re-introduced. MsgBox should not have been re-introduced.
11/22/04

220First unhighlighted code black after 2nd paragraph
The code block has several problems. You are asked to create emp as type New Employee, however, the new method must take a parameter. Aside from being no initialisation, it would be more appropriate to display the 1st array element, ie. (1) instead of (0) as on page 217 3rd para from the end it states appear as though our data set is 1-based rather than 0-based . In the code block on page 218 array item 0 (zero) would actually return nothing, whilst array items 1 though 3 would display something. This all means that the following would be a better piece of code for demonstration purposes:

Dim emp As New Employee( John )
Dim printable As IPrintableObject = emp
Dim values As IValues = emp
emp.EmployeeNumber = 151
Debug.WriteLine(emp.Value(1))
Debug.WriteLine(printable.Value(1))
Debug.WriteLine(values.GetValue(1))

The above would display the Employee Number (151) for John .
11/22/04

224First code block
In the code example ByVal was omitted for the declaration of variable Y .
11/22/04

2801st paragraph, 1st sentence
Based on the prior code sample, the sentence should refer to iItems rather than intY. The sentence should read: In our first Catch block we have inserted an If block, so that we can exit the block given a certain condition (in this case that the overflow exception was caused by the value of iItems being 0).
10/25/04

283Last line
Last line refers to system.divideexception . It should read System.DivideByZeroException .
11/22/04

399Code example
The first comment line should read: 'This code will work in VB.NET!! (delete the word not )
10/25/04

4023rd paragraph, last sentence
The word be is ! missing. The sentence should read: However, if you want to click on the area covered by an owned form, the owned form has to be moved out of the way first.
10/25/04

4261st code example
The value for the InitialDirectory property has a space in the string, which results in invalid data. The statement should read: OpenFileDialog1.InitialDirectory = C:\
10/25/04

429Last code example
The words then remove are duplicated in the comment, which should read: 'If the operation is a move (and not a copy) then remove' the item from the first list box
10/25/04

445Last paragraph, 2nd sentence
A space is missing between the words often and such .
10/25/04

4624th paragraph, 2nd sentence
A space is missing between the words clients and such .
10/25/04

556Error in Text
In 5th paragraph on the line starting with code-behind :

The text reads:
If you get a compile error...In that case, add the following line of code to the declarations section at the top of the code-behind page NavBar.ascx.vb: Protected WithEvents MyNavBar As NavBar

It should read:
If you get a compile error...In that case, add the following line of code to the declarations section at the top of the code-behind page WebForm1.ascx.vb: Protected WithEvents MyNavBar As NavBar .
04/06/2006

IndexIncorrect index in the book
Please download the correct index on the download page.
8/13/04

Microsoft® considers Visual Basic® .NET to be the language of choice for applications where developer productivity is a top priority. It offers you the ability to program against the .NET Framework, and the most recent version includes tools for programming today’s hot mobile applications. This code-laden reference covers VB.NET 2003 from start to finish.

THis book will help students discover how to apply object-oriented concepts in design and development to create effective business applications. Using this text, students will be able to access data using ADO.NET, integrate VB.NET with XML, create both Windows® applications and Web services, and much more. Finally, students will explore best practices for deploying .NET applications and understand the power of VB.NET in development that targets the Internet as easily as the desktop.

What students will learn from this book

  • How to create new namespaces and import and alias existing namespaces within projects
  • Error-handling methods using the Try...Catch...Finally structure
  • How to work with data binding and update the underlying data source in Windows applications
  • Methods for developing multithreaded applications
  • How .NET Remoting is used to exchange serialized objects between clients and servers
  • The differences between Mobile Web and .NET Compact Framework applications

Who this book is for

This book is for experienced developers who are making the transition to VB.NET or seeking a deeper understanding of the most common VB.NET programming tasks and concepts.

Wrox Professional guides are planned and written by working programmers to meet the real-world needs of programmers, developers, and IT professionals. Focused and relevant, they address the issues technology professionals face every day. They provide examples, practical solutions, and expert education in new technologies, all designed to help programmers do a better job.