Active X Control In C# Web App
-
Dont' know if this is the right forum but here goes ! I have an ActiveX control which I wrote (in VC6) and I am trying to use it in a C# Web App. I have run it through AxImp.exe and now got a couple of dlls and a cs file. Does any body know how I can now add the control to my C# page ? Hope some body can help. Cheers, Users. Can't live with 'em, can't kill em!
-
Dont' know if this is the right forum but here goes ! I have an ActiveX control which I wrote (in VC6) and I am trying to use it in a C# Web App. I have run it through AxImp.exe and now got a couple of dlls and a cs file. Does any body know how I can now add the control to my C# page ? Hope some body can help. Cheers, Users. Can't live with 'em, can't kill em!
Are you using Visual Studio? If so, just add the ActiveX dll to the Visual Studio toolbox, then drop it on your form as if it were a standard .NET control, VS will do the AxImp for you.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
-
Are you using Visual Studio? If so, just add the ActiveX dll to the Visual Studio toolbox, then drop it on your form as if it were a standard .NET control, VS will do the AxImp for you.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
I am using VS 2003, when I add the ActiveX Control and build the project, it does not create anything and I can't access the control as it does not have a variable associated with it, any ideas ? Cheers Users. Can't live with 'em, can't kill em!
-
I am using VS 2003, when I add the ActiveX Control and build the project, it does not create anything and I can't access the control as it does not have a variable associated with it, any ideas ? Cheers Users. Can't live with 'em, can't kill em!
Are you adding it to the VS toolbox and drop it on your form? Or did you just add it to the project references?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
-
Are you adding it to the VS toolbox and drop it on your form? Or did you just add it to the project references?
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
Hi, I added the activeX to the Toolbox and then dragged it onto the form but when I look as it's properties, it only shows the HTML properties, I can't see a way to give a variable which I can access from functions in the cs file. Any ideas ? Cheers Users. Can't live with 'em, can't kill em!
-
Hi, I added the activeX to the Toolbox and then dragged it onto the form but when I look as it's properties, it only shows the HTML properties, I can't see a way to give a variable which I can access from functions in the cs file. Any ideas ? Cheers Users. Can't live with 'em, can't kill em!
If you dropped it on the form, it created a variable for you. VS usually assigns the name ax[componentName][number], so if you dropped the WebBrowser control, it would generate a variable named axWebBrowser1.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
-
If you dropped it on the form, it created a variable for you. VS usually assigns the name ax[componentName][number], so if you dropped the WebBrowser control, it would generate a variable named axWebBrowser1.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
I tried adding the WebBrowser to the form, and nothing was created. It does as you say if you drop the control onto a windows form but not a web form, any ideas ? Users. Can't live with 'em, can't kill em!
-
I tried adding the WebBrowser to the form, and nothing was created. It does as you say if you drop the control onto a windows form but not a web form, any ideas ? Users. Can't live with 'em, can't kill em!
Lol...yeah, the WebBrowser controls is a Windows forms control, not a web forms control. That is where you're going wrong.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
-
Lol...yeah, the WebBrowser controls is a Windows forms control, not a web forms control. That is where you're going wrong.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango
I think we are talking via crossed wires. My original problem is that when I add any ActiveX control to a Web form, I dont know how to access it from the c# code as it does not create a variable. I used the web control as an example to prove to myself that if you add a control to a windows form, a variable is created. I do not intend to use a web control on a web form, that would be silly I agree. Is it possible to do what I want or can I only add special web form controls to web forms ? Hope you can help, Cheers Users. Can't live with 'em, can't kill em!
-
I think we are talking via crossed wires. My original problem is that when I add any ActiveX control to a Web form, I dont know how to access it from the c# code as it does not create a variable. I used the web control as an example to prove to myself that if you add a control to a windows form, a variable is created. I do not intend to use a web control on a web form, that would be silly I agree. Is it possible to do what I want or can I only add special web form controls to web forms ? Hope you can help, Cheers Users. Can't live with 'em, can't kill em!
I don't think you can add an ActiveX control to a web form. My understanding is there is something extra that needs to be done. I don't know though, you should ask that question in the ASP.NET forums.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: Cops & Robbers Judah Himango