Click to See Complete Forum and Search --> : How to use Visual Basic 6.0 ActiveX Control in ASP.NET & C# 3.5


SharmaMohit3333
January 8th, 2009, 09:57 AM
I am developing an application in ASP.NET & C#3.5. But I need to use an ActiveX Control which developed in Visual Basic 6.0.
Can anyone help me?

1. How to use ActiveX Control in Web application.
2. How to send values from ActiveX Control to web server.

Please help!

Thanks in advance

JonnyPoet
January 8th, 2009, 02:58 PM
I am developing an application in ASP.NET & C#3.5. But I need to use an ActiveX Control which developed in Visual Basic 6.0.
Can anyone help me?

1. How to use ActiveX Control in Web application.
2. How to send values from ActiveX Control to web server.

Please help!

Thanks in advance1)Web Controls are web Controls and if your control isn't designed for usage in net IMHO it isn't possible. WebControls are designed in a way so they could be sent to the user via HTML code so the browser is able to show it on the screen.
2) A web control has a postback method so its easy to post values back to the server. This is one of the reasons why you need to use a web control. What sort of ActiveX you have so you think you need to use it in the web ?.

SharmaMohit3333
January 9th, 2009, 01:47 AM
1)Web Controls are web Controls and if your control isn't designed for usage in net IMHO it isn't possible. WebControls are designed in a way so they could be sent to the user via HTML code so the browser is able to show it on the screen.
2) A web control has a postback method so its easy to post values back to the server. This is one of the reasons why you need to use a web control. What sort of ActiveX you have so you think you need to use it in the web ?.


1. I've found that how to use ActiveX control in ASP.net like
<object id="objOcxCtrl" classid ="clsid:BBB438D4-B437-46AD-B583-6215E398F31F"
codebase="http://ServerIpAddress/CheckActiveX/MyActiveX.CAB#version=1,0,0,0" >
</object>

2. I've built this ActiveX control in Visual Basic 6.0. I need to read all information from the client system i.e. from selected path, I need to find out how many folder, subfolders & files count, extention of files with Size also.
For e.g. If user uses MyActiveX control then first user needs to browse the path and it will show Client Side drive, folders & files list. When user will select the path and click on then it will show a report i.e. count for folders, subfolders, files with extentions, size.

dglienna
January 9th, 2009, 02:17 AM
Your control sends file info to the web, and then others can see? Doesn't sound like something I'd like to have running.

Also, can easily be mis-used.

SharmaMohit3333
January 9th, 2009, 02:23 AM
Your control sends file info to the web, and then others can see? Doesn't sound like something I'd like to have running.

Also, can easily be mis-used.


I need to do R&D on it. How to interact that ActiveX Control with Web Server.
Could you please help on it?

dglienna
January 9th, 2009, 02:34 AM
You'd be doing remote-control type, but you'd have to deal with firewalls, and av programs blocking you.

I suppose that we could just post code for you and the bad guys to see, that lets VB6 controls interfacing with the web.

I really don't know if it can be done, anyways. Not since XP SP2, anyways.

SharmaMohit3333
January 9th, 2009, 02:54 AM
You'd be doing remote-control type, but you'd have to deal with firewalls, and av programs blocking you.

I suppose that we could just post code for you and the bad guys to see, that lets VB6 controls interfacing with the web.

I really don't know if it can be done, anyways. Not since XP SP2, anyways.


When user will open the web page where ActiveX control is used that a pop up message will come to install AcitveX control then it will be visible to Client side otherwise it will not.

It would be greatly appreciated if I will get code :-)