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,
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,