vidhi Posted August 25, 2008 Posted August 25, 2008 My below logic and code works fine in VB6 but after migrating it to VB.net it is not working.... I have two projects- Framework and View. In framework i have a form containing webbrowser control in which Main.htm is loaded. This main.htm is as follows... <HTML> <BODY> <OBJECT id=objView tabIndex=-1 height=0 width=0 classid=clsid:5022B24E-FC65-40f7-9623-7D54F4B98FBC></OBJECT> <OBJECT id=ctlView1 classid=clsid:CDF10BE8-0FAC-44cd-A8F6-1E7DAF83F2DB height=100% width=100%> <PARAM NAME="_ExtentX" VALUE="5477"> <PARAM NAME="_ExtentY" VALUE="6985"> <PARAM NAME="Appearance" VALUE="0"> </OBJECT> <input type=hidden id=hid1 name=nTV value=1 tabindex = -1> </BODY> <SCRIPT language = vbscript> objView.SetRef(ctlView1) </SCRIPT> </HTML> In the project View there is a class clsViewType whose clsid is 5022B24E-FC65-40f7-9623-7D54F4B98FBC and contains method setRef to which ctlView1 is passed as parameter. clsid:CDF10BE8-0FAC-44cd-A8F6-1E7DAF83F2DB is ActiveXcontrol which is migrated to .net. Implementation of SetRef methid in class ClsView is as follows.. Public Sub SetRef(ByVal objView As Object) On Error GoTo errHand m_View = objView m_View.ClearList() ClearList is method in ActiveX Control but i get error "Public member 'ClearList' on type HTMLObjectElementClass Not Found " while calling this.............. Very urgent..... Thanks in advance VidhiSagare is offline Reply With Quote Quote
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.