-
January 8th, 2009, 09:57 AM
#1
How to use Visual Basic 6.0 ActiveX Control in ASP.NET & C# 3.5
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
-
January 8th, 2009, 02:58 PM
#2
Re: How to use Visual Basic 6.0 ActiveX Control in ASP.NET & C# 3.5
Originally Posted by SharmaMohit3333
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
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 ?.
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
-
January 9th, 2009, 01:47 AM
#3
Re: How to use Visual Basic 6.0 ActiveX Control in ASP.NET & C# 3.5
Originally Posted by JonnyPoet
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.
-
January 9th, 2009, 02:17 AM
#4
Re: How to use Visual Basic 6.0 ActiveX Control in ASP.NET & C# 3.5
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.
-
January 9th, 2009, 02:23 AM
#5
Re: How to use Visual Basic 6.0 ActiveX Control in ASP.NET & C# 3.5
Originally Posted by dglienna
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?
-
January 9th, 2009, 02:34 AM
#6
Re: How to use Visual Basic 6.0 ActiveX Control in ASP.NET & C# 3.5
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.
-
January 9th, 2009, 02:54 AM
#7
Re: How to use Visual Basic 6.0 ActiveX Control in ASP.NET & C# 3.5
Originally Posted by dglienna
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 :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|