Your assembly will need to be built to support COM events. See this link for
a walkthru on activex and events
http://support.microsoft.com/kb/555687/en-us
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog:
http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"gp" <go*********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
It don´t exist any private member in the classor controls in the
form..
only the code that you can see.
private void pr()
{
Control.AgentActiveX ax = new Control.AgentActiveXClass();
ax.EventAx += new
Control.IAgentActiveXEvents_EventAxEventHandler(De f_EventoAx);
}
private void Def_EventoAx()
{
//code...
}
private void button1_Click(object sender, System.EventArgs e)
{
//I wish execute a method of Control.AgentActiveX
}
This is that I want.
Is posible?
Thanks.
Andreas Mueller ha escrito:
gp wrote:
Hello, I´m trying to use Activex but without using a Global varible or
internal member of the class. Is that posible? I must do it with a code
but
without a control. I ´ll apreciate if anybody can help me with this.
Yes you usually can. I might be that the ActiveX needs to have a parent,
but you usually can make it invisible.
HTH,
Andy
--
You can email me directly by removing the NOSPAm below
xm**********@gmxNOSPAm.netNOSPAm