Option Explicit
Private Sub Command1_Click()
On Error GoTo errorhandler跳转到errorhandler行标签
Image1.Height = Image1.Height - 100图像框的高度和宽度以100缇单位缩小
Image1.Width = Image1.Width - 100
errorhandler: 行标签
End Sub
Private Sub Command2_Click()
On Error GoTo errorhandler
Image1.Height = Image1.Height + 100图像框的高度和宽度以100缇单位放大
Image1.Width = Image1.Width + 100
errorhandler:
End Sub
Private Sub Command3_Click()
End
End Sub
原文链接:https://www.f2er.com/vb/260440.html