Wrox Programmer Forums
|
BOOK: Professional VB.NET, 2nd Edition or 2003
This is the forum to discuss the Wrox book Professional VB.NET, 2nd Edition by Fred Barwell, Richard Case, Bill Forgey, Billy Hollis, Tim McCarthy, Jonathan Pinnock, Richard Blair, Jonathan Crossland, Whitney Hankison, Rockford Lhotka, Jan D. Narkiewicz, Rama Ramachandran, Matthew Reynolds, John Roth, Bill Sheldon, Bill Sempf; ISBN: 9780764544002
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional VB.NET, 2nd Edition or 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 August 7th, 2004, 11:18 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Really dumb question about Chap 19

I am just starting to try the ThreadExample in Chapter 19. I am starting to create the ThreadWorker class and get this far:

Imports System.Threading

Public Class ThreadWorker
   Public TextBox As TextBox
   Private _thread As Thread

End Class

But VB doesn't like the line declaring _thread. The error message is "Type expected". I have loaded the source from the site for the project, and it is fine, but when I copy it into my project, I get the error message. Is there some project setting I am missing?

Thanks for any help.
 
Old August 7th, 2004, 11:34 AM
Registered User
 
Join Date: Aug 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nevermind! I figured it out.

I had also named my project "Thread" which conflicted with the name of the object I was trying to instantiate.





Similar Threads
Thread Thread Starter Forum Replies Last Post
chap 19 : parse-gedcom.xsl jacquesfauquex BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 4 May 29th, 2008 04:08 PM
Chap 19 Page 957 Lostincode BOOK: Ivor Horton's Beginning Visual C++ 2005 1 March 22nd, 2007 05:08 PM
dumb question dazmiller SQL Language 2 September 29th, 2005 09:10 AM
Dumb date to record question topshed Classic ASP Databases 2 June 3rd, 2005 01:42 PM
Dumb Question topshed CSS Cascading Style Sheets 1 April 7th, 2005 04:29 PM





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