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

📄 closeform.frm

📁 使用VB和MAPX开发的一个比较通用的实例程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form closeform 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "关闭表"
   ClientHeight    =   3015
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4695
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3015
   ScaleWidth      =   4695
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3480
      TabIndex        =   3
      Top             =   2160
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "关闭"
      Height          =   375
      Left            =   3480
      TabIndex        =   2
      Top             =   240
      Width           =   1095
   End
   Begin VB.ListBox List1 
      Height          =   2220
      Left            =   0
      TabIndex        =   0
      Top             =   240
      Width           =   2655
   End
   Begin VB.Label Label1 
      Caption         =   "已打开的所有自定义图层"
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   0
      Width           =   2535
   End
End
Attribute VB_Name = "closeform"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If List1.Text <> "" Then
Form1.Map1.Layers.Remove List1.Text
List1.RemoveItem (List1.ListIndex)
End If
Hide
End Sub

Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Dim ly As Layer
For Each ly In Form1.Map1.Layers
List1.AddItem ly.Name
Next ly
End Sub

⌨️ 快捷键说明

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