Thread can't see my components.

C

Craig Kenisston

I'm trying to create a simple one-form application that reads information
from a database in a thread.
Everything runs fine, statements executes ok, but I want to add some of the
returning information into listBoxes in my form.

Following Microsoft's sample, I created a couple of static methods in my
form class.
I get the error :

'ThreadDmo.Form1.listBox1' denotes a 'field' where a 'class' was expected

How do I "connect" the thread static method with my form, so I can interact
with my components ?

Or should I change my static methods for instance methods ? I got lots of
other erros in my attemp to do that.


Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top