Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
If Control.MouseButtons = MouseButtons.Left Then
Me.Label1.Text = String.Format("({0}, {1})", Control.MousePosition.X, Control.MousePosition.Y)
'MsgBox("クリックしたね")
End If
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
If Control.MouseButtons = MouseButtons.Left Then
Dim btnClientCurPos As Point = _
WebBrowser1.PointToClient(Cursor.Position)
Me.Label2.Text = String.Format("({0}, {1})", _
btnClientCurPos.X, btnClientCurPos.Y)
Label2.Location = New System.Drawing.Point _
(btnClientCurPos.X, btnClientCurPos.Y)
'MsgBox("クリックしたね")
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
そこで、自分の作ったVS2005のVBソフトにJavaScriptを埋め込むテストとして、簡単な例(http://www.geekpage.jp/web/google-maps-api/v3/helloworld.php)を使って下記のようにやってみましたが、エラー「'無効な URI: URI スキームが有効ではありません。」が出ました。