Introduction - If you have any usage issues, please Google them yourself
Private Sub Form_Load()
Dim dcnn As New MapObjects2.DataConnection
Dim mlayer As New MapObjects2.MapLayer
dcnn.Database = "G:\shape文件"
dcnn.Connect
Set mlayer.GeoDataset = dcnn.FindGeoDataset("bou2_4l")
Map1.Layers.Add mlayer
End Sub