• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

VB.NET Thread Help

tfinch2

Lifer
The attached code below is in question...

Here is the error:

Access of shared member, constant member, enum member or nested type through an instance; qualifying expression will not be evaluated.

When I try to make the thread sleep within the thread method I get this error. I've also tried Thread.CurrentThread.Sleep(10000), and it's still the same error. I've tried to research the error but all of the explainations seem confusing. Any help on how to do this the right way?

Thanks
 
Got it.

change test.sleep(10000) to System.Threading.Thread.sleep(1000)

In .Net 2.0 have to change each instance variable to the type.
 
Back
Top