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.