Windows Develop Bookmark and Share   
 index > Windows Forms General > Late binding/Invoke Script
 

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.
MigrationUser 1  Thursday, September 23, 2004 6:30 AM
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.
MigrationUser 1  Sunday, March 20, 2005 6:29 PM

You can use google to search for other answers

Custom Search

More Threads

• How do i grab the text from a listbox from a listbox
• DefaultProperty and DefaultEvent
• Printing Custom Labels with VB.NET
• switching between windows forms
• Custom Control - Image Property
• Cannot show tip after click the error provider.
• Shockwave flash object requirements
• setting the parent HWNDfor a form
• having a problem getting random number method to release error flag.
• animating an ellipse paint event in a button