• 2022-06-06
    在窗体上画一个名称为Text1的文本框,然后编写以下事件过程:Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer) If _________________ Then Text1.SelStart = 0 Text1.SelLength = Len(Text1.Text) End IfEnd Sub要求程序运行时,若输入焦点在Text1上,按下组合键Ctrl+A可以选取Text1内所有的文本,则在横线处应填入的表达式是________。
    A: KeyCode = 65 And Shift = 2
    B: Text1.KeyCode = "A" And Text1.Shift = "Ctrl"
    C: KeyCode = "A" And Shift = "Ctrl"
    D: Text1.KeyCode = 65 And Text1.Shift = 2
  • 举一反三