单选题
VB
题号 #2031634
编写如下事件过程:

程序运行后,为了在窗体上输出“BBBB”,应执行的操作为( )。
参考答案
D
答案解析
D) 【解析】鼠标单击时,鼠标键按下的参数Button 可取3个值:按下左键时,Button值为1、按下右键时,Button值为2、按下中间键时,Button值为4。Shift参数反映了当按下指定鼠标键时,键盘上转换键(Shift、Ctrl和Alt)的当前状态。各种状态对应的值为:未按转换键时Shift值为0;按下Shift键时Shift值为l;按下Ctrl键时Shift值为2;按下Shift和Ctrl键时Shift值为3;按下Alt键时Shift值为4;按下Alt和Shift键时Shift值为5;按下Alt和Ctfl键时Shift值为6;按下Shift、Ctrl和Alt键时Shift值为
7。题中表达式“Shift=6AndButton=2”,因此需要在同时按下Alt 键、Ctrl键和鼠标左键。
7。题中表达式“Shift=6AndButton=2”,因此需要在同时按下Alt 键、Ctrl键和鼠标左键。
你可能感兴趣的试题
A.Value
B.Default
C.Cancel
D.Enabled
A.Combo1.Removeltem Text
B.Combo1.Removeltem 2
C.Combo1.Removeltem 3
D.Combo1.Removeltem Combo 1.Listcount
