PC Review


Reply
Thread Tools Rate Thread

Calling ActiveX control method from another thread

 
 
Dave Taylor
Guest
Posts: n/a
 
      27th Aug 2004
I have an ActiveX control on a Windows form that provides OPC client
functionality. The control has no visible elements. I would like to write a
class which uses the control to pass data to an OPC server based on a
timer...say every 5 seconds write data to the server. I know normally, I'd
use the Invoke member to access control properties from a separate thread.
However, if no other thread is accessing the control and there are no
visible elements of the control, is it still necessary to use Invoke or can
I safely call the control's methods directly?

Thanks

Dave Taylor
PERI


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling a VB Activex DLL method from C# (NET 1.1 - 2003) =?Utf-8?B?Q2FybG90?= Microsoft C# .NET 2 13th Jun 2007 07:10 AM
Calling a method on a sperate thread kplkumar@gmail.com Microsoft C# .NET 3 11th Jan 2006 06:00 PM
Calling a main thread method from a worker thread Hao L Microsoft C# .NET 5 2nd May 2005 08:31 PM
Calling method on different Thread? Torben Philippsen Microsoft Dot NET Framework Forms 2 26th Oct 2004 05:00 PM
Calling a method with params on a form on a different thread, plea =?Utf-8?B?TWlrZQ==?= Microsoft C# .NET 1 13th Oct 2004 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:14 PM.