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

admin2020-07-22  27

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

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

答案D

解析 本题中,Lick是控件的名称,MouseDown是鼠标按下事件,当用鼠标左键或右键单击Click控件时就会触发MouseDown事件,执行MouseDown事件过程。故选D。
转载请注明原文地址:https://jikaoti.com/ti/EhS0FFFM
0

随机试题
最新回复(0)