Click here to Skip to main content
15,904,339 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
Hi,
How to create Active X control in vb.net. i want to use active x control with web application.
I had build usercontrol use classlibrary and inclued with web applicaton.it work fine on local pc.when i have accessed by another pc it doesn't work.
so how to make active x control in vb.net and access with web application.
please any suggesstions and links.............
Thanks & Regards
mukesh
Posted
Comments
Ankit Rajput 25-Apr-11 2:24am    
is there any exception you are getting when using from another PC?
mukesh_panth 25-Apr-11 2:58am    
Hi,
I am using VS 2008, VB.Net, Winow 7 (OS). I am using third party control on my user control. my application is working fine on my wind 7 pc. but when i have accessed from another pc(it is XP) by http://<ipaddress>/<appname> then i got some error "Internet Explorer has encountered a problem and need to close. we are sorry for the inconvenience....."
Sergey Alexandrovich Kryukov 25-Apr-11 2:26am    
For a software developer, there is no such thing as "does not work". Detailed problem report, please!
--SA
mukesh_panth 25-Apr-11 3:09am    
Hi, Sorry for the my mistake "application doesn't work". i tell u detail for the my applicaiton..
1. I am using VS 2008,VB.Net and Wind 7(OS). I working with third party control.
2. I have created Usercontrol using classlibrary and inclued third party control on the my user control.
3. after build the dll of the user control.I have add dll on the root folder on my web appl and call the below code in html.
<object id="myctrl" classid ="http:ClassLibrary.dll#ClassLibrary.UserControl"
width ="400" height ="350" codebase="ClassLibrary.dll">
4. after create virtual dir. my application is working fine on local pc. when i have accessed from the another pc(Wind Xp) by http://<ipaddress>/<webappname> then i got error on the xp browser "Internet Explorer had encountered a problem and need to close. we are sorry for the inconvenience..."
plz give my suggesstion..
Sergey Alexandrovich Kryukov 25-Apr-11 3:25am    
Sorry, but... this is IE bug! It is not supposed to crash no matter how bad is the URL or a loaded page...
By the way, not "http:///", just "http://domain/blah-blah".
Use another Browser to check up (you will need to test on different browsers sooner or later).
--SA

1 solution

Can this article with step-by-step instruction help you:
http://www.vbdotnetheaven.com/UploadFile/dsandor/ActiveXControlInVBdotNET04112005081747AM/ActiveXControlInVBdotNET.aspx[^].

See this discussion of creating ActiveX control for a Web page:
http://forums.asp.net/t/281326.aspx/1[^] (with sample code in an answer).

You will find over ten million results more if you do this:
http://en.lmgtfy.com/?q=Creating+ActiveX+with+%22VB.NET%22+%22ASP.NET%22[^].

If you have a problem, report it properly. Never say "it doesn't work" — such noise never helped anyone. Remember, you're a software developer!

—SA
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900