basapa Posted April 5, 2003 Posted April 5, 2003 Hello, i've read some threads about how to catch HTML events in a VB.Net application that have a WebBrowser component. In Microsoft documentation i saw it' possibile to access host functions from HTML scripts "window.external". But I'm not able to do this. I found examples in C# on Microsoft site. Do you know if it's possible to do the same using Vb.Net.? Thanks to all. Sorry for my english. Quote
AndreRyan Posted April 5, 2003 Posted April 5, 2003 VB can do everything C# can (except for Unmanaged code) so all you have to do is translate it into VB or create a C# DLL project and put the code there Quote .Net allows software to be written for any version of Windows and not break like Unmanaged applications unless using Unmanaged procedures like APIs. If your program uses large amounts of memory but releases it when something else needs it, then what's the problem?
basapa Posted April 6, 2003 Author Posted April 6, 2003 I cannot I have only Vb.Net, so i cannot create C# project and use the Dll in my Vb.Net Project. I cannot traduce c# code to VB.Net code because the c# code use an Interface that is not accessible via VB.Net Quote
*Gurus* divil Posted April 7, 2003 *Gurus* Posted April 7, 2003 Which interface? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
basapa Posted April 7, 2003 Author Posted April 7, 2003 IDocHostUIHandler The Interface is : IDocHostUIHandler On Microsoft Site: http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/mshtml/reference/structs/mshtml_ref_structs_entry.asp Quote
*Gurus* divil Posted April 7, 2003 *Gurus* Posted April 7, 2003 You have to find an assembly where that interface is defined, and unfortunately there isn't a public one in the framework. Interopping with MSHTML like this is not easy, and you end up having to define a lot of interfaces yourself with their GUIDs. If you just want your application to respond to HTML events, search this forum for "html events". Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
basapa Posted April 7, 2003 Author Posted April 7, 2003 Events I've just read thread about events but i'd like to use my own function without using events to access my own code. I want to use window.external capabilities of MSHTML Thanks Quote
*Gurus* divil Posted April 7, 2003 *Gurus* Posted April 7, 2003 Then you have a lot of work ahead of you :) Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
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.