单选题
窗体上有一个名称为Picture1的图片框控件,一个名称为Label1的标签控件,如下图所示。
现有如下程序:
Public Sub Display(x As Control)
If Type Of x is Label Then
x.Caption="计算机等级考试"
Else
x.Picture=Load Picture("pic.jpg")
End If
End Sub
Private Sub Label1_Click()
Call Display(Label1)
End Sub
Private Sub Picture1_Click()
Call Display(Picture1)
End Sub