Public Sub New()
Dim sMsg As String
' This call is required by the Windows Form Designer.InitializeComponent()
MapInfo =
CType(CreateObject("MapInfo.Application"), MapInfo.DMapInfo)sMsg =
"Set Next Document Parent " & CType(Me.picMapWindow.Handle, String) & " Style 1"MapInfo.Do(sMsg)
sMsg =
"run application ""D:\Care\04\04.wor"""MapInfo.Do(sMsg)
End Sub
Private Sub picMapWindow_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles picMapWindow.SizeChanged
Dim mHwnd As Long
If Not MapInfo Is Nothing ThenmHwnd = Val(MapInfo.Eval(
"WindowInfo(FrontWindow(),12)"))MoveWindow(mHwnd, 0, 0, picMapWindow.Size.Width, picMapWindow.Size.Height, 0)
End If End SubPrivate Sub ToolStripButtonZoomEntire_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButtonZoomEntire.Click
MapInfo.Do(" Set map Zoom entire")
End Sub
Private Sub ToolStripButtonZoomIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButtonZoomIn.Click
MapInfo.RunMenuCommand(1705)
End Sub
Private Sub ToolStripZoomOut_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripZoomOut.Click
MapInfo.RunMenuCommand(1706)
End Sub
Private Sub ToolStripButtonInfo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButtonInfo.Click
MapInfo.Do("Create Buttonpad ""SelectGeneric"" As Toolbutton ID 785 DrawMode 34 Cursor 134 Calling OLE ""SelectGeneric""")
MapInfo.Do(
"Run Menu Command ID 785")MapInfo.SetCallback(mycallback)
End Sub_______________________________________________ MapInfo-L mailing list [email protected] http://www.directionsmag.com/mailman/listinfo/mapinfo-l
