Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...