单项选择题

为了在列表框中使用Ctrl和Shift键进行多个列表项的选择,应将列表框的Multi-select属性设置为( )。

A.0
B.1
C.2
D.3
<上一题 目录 下一题>
热门 试题

单项选择题
设s= 中华人民共和国 ,表达式Left(S,1)+Right(S,1)+Mid(S,3,2)的值为( )。
A."中华民国"
B."中国人民"
C."中共人民"
D."人民共和"
单项选择题
在窗体上画一个名称为Text1的文本框,要求文本框只能接收大写字母的输入。以下能实现该操作的事件过程是( )。
A.Private Sub Text1_KeyPress(KeyAscii As Integer)
  If KeyAscii<65 Or KeyAscii>90 Then
   MsgBox"请输入大写字母"
   KeyAscii=0
  End If
 End Sub
B.Private Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer)
If KeyCode<65 Or KeyCode>90 Then
  MsgBox"请输入大写字母“
  KeyCode=0
   End If
End Sub
C.Private Sub Text1_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
If Asc(Text1.Text)<65 Or Asc(Text1.Text)>90 Then
  MsgBox"请输入大写字母"
 End If
End Sub
D.Private Sub Text1_Change()
  If Asc(Text1.Text)>64 And Asc(Text1.Text)<91 Then
   MsgBox"请输入大写字母"
  End If
End Sub
相关试题
  • Int(X 2)或X 2
  • 98+1
  • List1.ListIndex
  • 0
  • A((i-1)*10+j)