vidhi Posted July 28, 2008 Posted July 28, 2008 Hi I have following code in my Visual Basic Project. It contains html page which includes classid of vb6 class and method in VB6 class is called from html Code in HTML: <HTML> <HEAD> </HEAD> <BODY> <OBJECT id=objView tabIndex=-1 height=0 width=0 classid=clsid:97919B55-C676-468C-8B04-C57DBC931E1D></OBJECT> </BODY> <SCRIPT language = vbscript> objView.SetTVRef() </SCRIPT> </HTML> But same thing when i try to do with VB.net class it does not work. I just replaces classid value in above html with classid of the .net class. But it does not work :( Thanks in advance. Quote
Administrators PlausiblyDamp Posted July 28, 2008 Administrators Posted July 28, 2008 How did you create the vb.net dll? You need to make sure the dll itself is also made COMVisible (there should be an option from the property pages somewhere or in the assemblyInfo.vb file add a line.. and see if that helps. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.