473,513 Members | 2,425 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ActiveX with C# .Net 2003

gp
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.

Aug 22 '06 #1
3 1611
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
Aug 23 '06 #2
gp
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
Aug 23 '06 #3
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

Aug 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
1882
by: Randy Dietz | last post by:
Hi, how can I create a simple non-UI dll or component which will be used by MS Access and .ASP apps which I can build with Visual C++ .net? An example or template which would allow me to paste in...
1
1399
by: castle8000 | last post by:
Hi folks. I dunno if this is the right place to ask for help with ActiveX / .net / Outlook, so ill siimpl give it a try :) I want to develop an ActiveX Control for MS-Outlooks 2003 with Visual...
1
8177
by: Javier Gomez | last post by:
I had the following error message: ******** START ************ "" The expression on Click you entered as the event property setting producedthe following error: A problem occurred while...
2
3808
by: Dean Bortell | last post by:
I am new to VS 2003 C#. I have created a simple telephony project in C# using an activex control from allem martin called aximtapi pro. www.allen-marting- inc.com. I have the retail version of...
5
1612
by: Sagaert Johan | last post by:
hi I have the following problem: I have a C# application that uses an activeX . I installed the application and the NET 1.1 Runtimes on a clean pc When running the application i discover...
8
1533
by: Alex | last post by:
Hello, I am trying to access some windows components from a web based application and I am having trouble find my way. The only solution seems to be to creat an ActiveX control to access the...
2
2865
by: Wael_Bakr | last post by:
I have a dll written in visual basic.net, I need to run this dll on client's machine, so if i need to wrap it as an activex control to be downloaded on client's machine how can i do this using...
3
2286
by: Weston Fryatt | last post by:
Simple question I hope.... How do I send data to and from an ASP.Net (server side) web page to a ActiveX Control (client side) embedded in a web browser??? What I need to do, is I have image...
5
6080
by: mikez | last post by:
Hi, We recently built a very basic file management system for a client in Access 2003 (to use with incoming tif scans). In it we used Microsoft's Document Imaging activex viewer (from Office...
4
2493
by: Henrik Dahl | last post by:
Hello! Is it possible to use Visual Studio 2005 or, secondarily, Visual Studio .NET 2003 to create ActiveX controls which may be consumed by VB 6.0 programs, i.e. dealt with on forms in the...
0
7264
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7534
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5689
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5094
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3236
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3226
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
459
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.