Closed GoogleCodeExporter closed 9 years ago
The code you have there is very odd indeed. There is no need to set up a loop
at all. Also, there is no need to call CreateInstance as the call to
LoadEmbeddedPlugin already does this. Your code will constantly keep reloading
the plugin as you have...
"load plugin -> loop until ready -> when ready - load plugin"
To load the GEWebBrowser control in VB you would do something like:
Option Strict Off
Public Class Form1
Private Dim _ge as Object = Nothing
Private Sub GeWebBrowser1_PluginReady( ByVal sender As System.Object, ByVal e
As FC.GEPluginCtrls.GEEventArgs) Handles GeWebBrowser1.PluginReady
_ge = e.ApiObject ' reference to the Google Earth Plugin object
MessageBox.Show(_ge.getApiVersion()) ' _ge is the plugin -use it just as in the javascript api...
End Sub
Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
GeWebBrowser1.LoadEmbeddedPlugin() ' load the plugin
End Sub
End Class
Original comment by fraser.c...@gmail.com
on 1 May 2012 at 3:52
Original issue reported on code.google.com by
sergio.s...@gmail.com
on 24 Mar 2012 at 7:49