mike mcintyre's

.N e t J o u r n a l

This blog hosted by:
http://blogs.vbcity.com      
  Home :: Syndication  :: Login

OctNovember 2004Dec
SMTWTFS
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

Archives

Topics

Source Code

Tuesday, November 30, 2004 #

The VB example code in the Visual Studio 2005 Beta1 help topic: “How to Implement Two-Way Communication Between DHTML Code and Client Application Code” does not work.

By default, Visual Studio 2005 disables COM visibility. The class that will be the WebBrowser control's ObjectForScripting, Form1 in the example, must be COM visible.

To give Form1 in the help topic example COM visibility use the ComVisible attribute to make it COM visible:

_

Public Class Form1

   ‘... code

End Class

posted @ 8:06 AM