Once you have your setup, you have to create CAB. This might require having administration privileges. The important thing is that your setup has to register your ActiveX on a target computer. I have done this by using InstallShield application because this is what my company standard was, but you can use Visual Studio to do that (although I have never tested it). First of all, you have to create a setup program that will either be MSI or it will wrap MSI into setup.exe file. Now it is time to create the CAB file that will be launched when the browser won't find our ActiveX registered on the system. Remember to set proper security values in your Internet Explorer that will allow running ActiveX. You can also read from ActiveX field using JavaScript.
Open is just a name of the method, it can be named anything that you can think of.Īssigning variables works both ways. This script will assign value to MyParam and invoke the Open() method from our C# code which will return open MessageBox with “ I am here” text. Passing parameters to ActiveX object function OpenActiveX()ĭ = " Hi I am here." () In summary, what we need is to create a class that will be marked with those attributes: NET Framework, WinForms are wrapped into ActiveX which is exactly what we need.
How to register assembly with regasm using installshield how to#
This article describes how to create and expose Windows Forms on the Web site. You can find a good introduction to this subject here. The first step you have to do is to create the ActiveX control:). Web.zip- Example of the HTML file that embeds ActiveX object.Setup.zip - Contains example of the *.ini file needed to create CAB.Everything that is in this article can be found on the Web, but believe me this is not so easy ).
At my job, I have had a project where I needed to deliver a solution for creating, distributing and running ActiveX controls written in.