Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003
This is the forum to discuss the Wrox book Professional VB.NET 2003 by Bill Evjen, Billy Hollis, Rockford Lhotka, Tim McCarthy, Jonathan Pinnock, Rama Ramachandran, Bill Sheldon; ISBN: 9780764559921
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning VB.NET 2nd Edition/Beginning VB.NET 2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old July 30th, 2004, 05:20 PM
Registered User
Join Date: Jul 2004
Location: duluth, mn, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 13 p. 509

In VB.Net Second Edition I was doing the example in chapter 13 and got to page 509 entering the example code as I went.

The thing that I noticed was that I would change the MessageText property that we created in the "Public Sub New()" in the MyControl we created per the shown example, but I got a curious result.

I found that the MessageText would seem to work correctly, but then the Set MessageText would get run again, this time with the data from the property set on the form. In this case, it was not mentioned to set the MessageText property on the form, so it was blank and so this caused a different result than stated in the book. I know for sure this was the case as I followed the code step by step using watches.

It seemed that once the Public Sub New() completed running for the new MyControl the MessageText Set function would then run again, this time with the data from the MessageText property from the form.

This was easy enough to get around by moving a line of code to the form's New subroutine ( MyControl1.MessageText="Hello World").

Anyways, I just wanted to know if I was doing something wrong, was this an error in the book, or due to a newer version of VS.NET?

My version of VS.NET is the Academic version;
 Microsoft Development Environment 2003 7.1.3088
 Microsoft .Net Framework 1.1 1.1.4322

Thanks in advance for any help:)

Old July 31st, 2004, 07:19 AM
Friend of Wrox
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts


Could you post this relevant code?


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with Chapter 13 hooligan BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 November 11th, 2008 08:26 PM
Chapter 13 bwoll BOOK: Beginning Access 2003 VBA 1 June 7th, 2007 03:57 PM
problem in chapter 13 derrida BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 3 July 28th, 2006 02:31 AM
Chapter 13 ElMorenito BOOK: Beginning ASP 3.0 0 January 14th, 2005 02:56 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.