NetCF C# Webbrowser.ObjectForScripting Error

  • Thread starter Thread starter khawslee
  • Start date Start date
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.
 
Back
Top