Hi,
I'm trying to use a COM component in a C#.NET project. The sample VB
code of the COM component declares it as so,
Public WithEvents APC As ENTAPCDLL
I've made a reference to the com object in C# project, I want to set the
value of
an object called InputData which is a member of ENTAPCDLL - here's an
extract
from the object browser
public abstract new object InputData [ get, set ]
Member of ENTAPC._ENTAPCDLL
How can I set the value of InputData in C#?
If I create an instance of the ENTAPCDLL class and then do something
like
ENTAPCObject.InputData = new object();
I get " Property, indexer, or event 'InputData' is not supported by the
language; try directly calling accessor methods
'ENTAPC.ENTAPCDLLClass.get_InputData()' or
'ENTAPC.ENTAPCDLLClass.set_InputData(ref object)'"
Any help appreciated.
Joe
--
Sent via .NET Newsgroups
http://www.dotnetnewsgroups.com