Delegates, threads and instance methods

  • Thread starter Thread starter christopher green
  • Start date Start date
C

christopher green

Can someone provide me with a simple example as to how to start and stop
a thread that calls an instance method?

All examples on the web seem to call static methods.

Many thanks in advance.




*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it!
 
christopher green said:
Can someone provide me with a simple example as to how to start and stop
a thread that calls an instance method?

All examples on the web seem to call static methods.

Instead of new ThreadStart(MethodName) do
new ThreadStart(instance.MethodName)

where instance is a reference to the appropriate instance.
 
Back
Top