若看到程序中有以下事件过程,则可以肯定的是,当程序运行时 Private Sub Click_MouseDown(Button As Integer,_Shift As Integer,X As Single,Y As Single)

admin2013-10-16  36

问题 若看到程序中有以下事件过程,则可以肯定的是,当程序运行时
    Private Sub Click_MouseDown(Button As Integer,_Shift As Integer,X As Single,Y As Single)
           Print”VB Program”
    End Sub

选项 A、用鼠标左键单击名称为“Commandl”的命令按钮时,执行此过程
B、用鼠标左键单击名称为“MouseDown”的命令按钮时,执行此过程
C、用鼠标右键单击名称为“MouseDown”的控件时,执行此过程  
D、用鼠标左键或右键单击名称为“Click”的控件时,执行此过程

答案D

解析 鼠标按下事件(MouseDown)适用于窗体和大多数控件,包括复选框、命令按钮、单选按钮、框架、文本框、目录框、文件框、图像框、图片框、标签、列表框等。事件过程名格式为:控件名事件名,故本题Pfivate Sub Click MouseDown中的Click应为控件名。
转载请注明原文地址:https://kaotiyun.com/show/4hQp777K
0

最新回复(0)