form01.frm
来自「一个关于基于MO编程的参考资料希望对大家的交流和学习有帮助」· FRM 代码 · 共 55 行
FRM
55 行
VERSION 5.00
Object = "{9BD6A640-CE75-11D1-AF04-204C4F4F5020}#2.0#0"; "mo20.ocx"
Begin VB.Form Form01
Caption = "墨西哥地图"
ClientHeight = 4800
ClientLeft = 60
ClientTop = 345
ClientWidth = 6540
LinkTopic = "Form1"
ScaleHeight = 4800
ScaleWidth = 6540
StartUpPosition = 2 '屏幕中心
Begin MapObjects2.Map Map1
Height = 4215
Left = 360
TabIndex = 0
Top = 240
Width = 5775
_Version = 131072
_ExtentX = 10186
_ExtentY = 7435
_StockProps = 225
BackColor = 16777215
BorderStyle = 1
Contents = "Form01.frx":0000
End
End
Attribute VB_Name = "Form01"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Xue Wei,2003/5/1
'用程序加载图层,程序和图层文件在一个目录下。
Option Explicit
Private Sub Form_Load()
Dim dc As New DataConnection
Dim layer As MapLayer
dc.Database = App.Path
If Not dc.Connect Then
MsgBox "在指定的文件夹下没找到图层数据文件!"
End
End If
Set layer = New MapLayer
Set layer.GeoDataset = dc.FindGeoDataset("States")
Map1.Layers.Add layer
Set layer = New MapLayer
Set layer.GeoDataset = dc.FindGeoDataset("Rivers")
Map1.Layers.Add layer
Map1.Refresh
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?