求助!代码出错。
Private Sub Toolbar1_ButtonClick(ByVal Button As Button)Select Case Button.Index
Case 3
' full extent
map1.MousePointer = moZoomOut 此处调试时弹出“无效属性值”,什么原因,如何解决?
Case 2
map1.MousePointer = moZoomIn 同上
Case 1
map1.MousePointer = moPan 同上
Case 4
CommonDialog1.ShowPrinter
'Dim prin As Printer
'Set prin = Printers(0)
'prin.Orientation
'prin.Orientation = CommonDialog1.Orientation
'prin.Copies = CommonDialog1.Copies
Dim Msg, Style, Title, HELP, Ctxt, Response, MyString
Msg = "是否按纵向打印?" ' Define message.
Style = vbYesNoCancel ' Define buttons.
Title = "系统提示" ' Define title.
HELP = "DEMO.HLP" ' Define Help file.
Ctxt = 1000 ' Define topic
' context.
' Display message.
Response = MsgBox(Msg, Style, Title, HELP, Ctxt)
If Response = vbYes Then ' User chose Yes.
'map1.PrintMap "MyMap", "", False ' Perform some action.
ElseIf Response = vbNo Then ' User chose No.
' map1.PrintMap "MyMap", "", True ' Perform some action.
ElseIf Response = vbCancel Then
Exit Sub
End If
End Select
End Sub