单选题 VB
题号 #152371

设在窗体上有一个文本框,然后编写如下的事件过程: 
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)  
Const Alt=4  
Const Key_F2= &H71 
altdown%=(Shift And Alt) > 0 
f2down%=(KeyCode=Key_F2)  
If altdown% And f2down% Then  
Text1.Text= "abl" 
End If  
End Sub 
程序运行后,清除文本框中原有内容,如果按Shift+F2键,则在文本框中显示的是(  )。

进入在线模考

参考答案

D

答案解析

暂无解析

你可能感兴趣的试题

A.Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
If Button=2 Then PopupMenu Bt, 2
End Sub
B.Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
PopupMenu Bt
End Sub
C.Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
PopupMenu Bt,0
End Sub
D.Private Sub Form_MouseDown(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
If (Button=vbLeftButton) Or (Button=vbRightButton) Then PopupMenu Bt
End Sub
找试题 · 找答案 · 找资料 在线模考