NetCF C# Webbrowser.ObjectForScripting Error

K

khawslee

Having trouble using NetCF v2 Webbrowser in C# to make two-way
communication between C# form and Webbrowser class to interact.

Below is the error when compile. With
[System.Runtime.InteropServices.ComVisibleAttribute(true)] at my form
class.

Error 1 'System.Windows.Forms.WebBrowser' does not contain a definition
for 'ObjectForScripting'

It does work in win32 C# compilation, as the definition of
ObjectForScripting is in the WebBrowser class when view in Object
Browser.

My intention to use webbrowser is for hosting of Mediaplayer OCX in it
for playback in my WinCE mips platform, so after the mediaplay play
till the end with EndOfStream(lResult) trigger in the web, it will
triger a window.external to C# form to inform it of the event.

Any suggestion in this ?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top