I am creating a project in visual WebGui, On loading of first page i have taken a ActiveXBox and installed it to the system.
Now I want to access the methods available in the ActiveX control at client side which is already installed in the client machine. Problem is that the code is executed at server side and the code works for server.
What should i do so that the code will be executed for the client machine.
Thanks
@Amish Kumar,
The code you posted is a server-side code, which for a Visual WebGui web application means, that the code will run at the webserver only, provided the ActiveX control has been installed on the server. This may work for you (although not recommended) if you run your web application using your local host as your IIS webserver, but when the webserver is a remote machine, this code will not affect the client.
For Visual WebGui Web applications, you have chosen the correct hosting control, ActiveXBox, which will add the ActiveX control to the client's browser. To control it, you usually set "parameters" on the ActiveXBox control, which will then update/contact the ActiveX control it is hosting.
A fairly good example of how it works can be found in one of Visual WebGui's forum threads here (controlling a media player ActiveX control), and more information and sample can be found here.
Palli