Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > BOOK: Professional VB.NET, 2nd Edition or 2003
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old August 7th, 2004, 11:18 AM
Registered User
Join Date: Aug 2004
Location: Westlake Village, CA, USA.
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.
Reply With Quote
  #2 (permalink)  
Old August 7th, 2004, 11:34 AM
Registered User
Join Date: Aug 2004
Location: Westlake Village, CA, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

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.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 01:14 PM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.