2 Replies - 915 Views - Last Post: 23 August 2011 - 03:03 AM Rate Topic: -----

#1 realUse  Icon User is offline

  • New D.I.C Head

Reputation: -1
  • View blog
  • Posts: 3
  • Joined: 22-August 11

cross thread communication without using MS built in function invoke

Posted 22 August 2011 - 12:44 PM

How do you really implement the cross thread communication by oneself in an object such as control or class instance without using MS control.invoke function?

I have hard time finding a way to implement which thread to execute a function using my own code.
Is This A Good Question/Topic? 0
  • +

Replies To: cross thread communication without using MS built in function invoke

#2 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1524
  • View blog
  • Posts: 5,957
  • Joined: 21-March 08

Re: cross thread communication without using MS built in function invoke

Posted 22 August 2011 - 02:08 PM

The easiest way? Use Reflector and look at the code the Microsoft wrote.

Not really sure why you want to re-invent the wheel.
Was This Post Helpful? 0
  • +
  • -

#3 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5316
  • View blog
  • Posts: 11,354
  • Joined: 02-June 10

Re: cross thread communication without using MS built in function invoke

Posted 23 August 2011 - 03:03 AM

First, sometimes you need to use invoke. There is nothing wrong with it. Why don't you want to use it?

Second, what is it you are trying to accomplish? Not 'how are you trying to get there' but what is your end goal? Most likely when we know the real goal we can point you toward the right way.

I'm going to guess it can probably be resolved by raising an event and having your other class/thread subscribe to it.

See FAQ #2


FAQ (Frequently Asked Questions - Updated Aug 2011

Spoiler

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1