⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form03.frm

📁 一个关于基于MO编程的参考资料希望对大家的交流和学习有帮助
💻 FRM
字号:
VERSION 5.00
Object = "{9BD6A640-CE75-11D1-AF04-204C4F4F5020}#2.0#0"; "mo20.ocx"
Begin VB.Form Form03 
   ClientHeight    =   4305
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6300
   LinkTopic       =   "Form1"
   ScaleHeight     =   4305
   ScaleWidth      =   6300
   StartUpPosition =   3  '窗口缺省
   Begin MapObjects2.Map Map1 
      Height          =   4215
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   6255
      _Version        =   131072
      _ExtentX        =   11033
      _ExtentY        =   7435
      _StockProps     =   225
      BackColor       =   16777215
      BorderStyle     =   1
      Contents        =   "Form03.frx":0000
   End
End
Attribute VB_Name = "Form03"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'Xuewei,2003/6/18
'打开Coverage图层;

Option Explicit

Private Sub Form_Load()
  DrawLayer     '加载世界地图country图层;
  Me.Caption = "Coverage示例"
End Sub

Private Sub DrawLayer()
  Dim dc As New DataConnection
  Dim Lyr As MapLayer
  
  dc.Database = "[arc]" + App.Path + "\..\" + "USA COVERAGES"
  If dc.Connect Then
    Set Lyr = New MapLayer
    Set Lyr.GeoDataset = dc.FindGeoDataset("ADI.PAT")
    Map1.Layers.Add Lyr
  Else
    MsgBox "数据文件错误。"
  End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -