Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

Posted
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
.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?
Posted

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

  • *Gurus*
Posted

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".

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Posted

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

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...