Late binding/Invoke Script

looking for help with the following:-


Im porting a vb6 application to c# (using studio 2005 and the webbrowser control). This application main function is to host a webbrowser control to display html. As part of this application i need to have a pointer in javascript pointing back to the container app. This pointer allows me to do thinks you cant normally do in a web browser.

In the vb app i did the following:-

// declarations

Private WithEvents mw_htmlDetails As HTMLDocument

//function

Private Sub WebBrowser_DocumentComplete(ByVal pDisp As Object, _
                                        URL As Variant)
        
    If (pDisp Is WebBrowser.object) Then
      
        Set mw_htmlFolders = WebBrowser.Document.frames("FOLDERS").Document
             
        Set mw_htmlFolders.parentWindow.g_vVBCustomerForm = Me
   
   End If
       
End Sub

I understand that c# does not support late binding and even if i overcome this hurdle would javascript understand the pointer passed in (some mentioned this to me)

I have also looked at the InvokeScript method of the Document object but cant seem to pass in a reference pointer (i tried the ref keywoard but still didnt work)

any help much appreciated

thanks

adrian.


Answer this question

Late binding/Invoke Script

  • sgrathikala

    Hey hi. Just wondering if you have solved this. Anyways may you send me some more of your code and some extra explanation about it  I would like to give it a try with C#, I'm new to it so I like to test lots of stuff. Good luck there.
  • Late binding/Invoke Script