单选

11.在窗体(名称为Form1)上绘制一个名称为Text1的文本框和一个名称为Command1的命令按钮,然后编写一个事件过程。程序运行后,如果在文本框中输入一个字符,则把命令按钮的标题设置为“计算机等级考试”。以下能实现上述操作的事件过程是。

  • A.Private Sub Tex1_Change()
  • Command1.Caption="计算机等级考试"
  • End Sub
  • B.Private Sub Command1_Click()
  • Caption="计算机等级考试"
  • C.Private Sub Command1_Click()    Text.Caption="计算机等级考试"
  • End Sub
  • D.Private Sub Command1_Click()    Text1.Text="计算机等级考试"
  • End Sub
参考答案
您可能感兴趣的试题

31.设在工程中有一个标准模块,其中定义了如下记录类型:

Type Books

 Name As String *10

 Te1Num As String *20

End Type

 在窗体上画一个名为Command1的命令按钮,要求当执行事件过程Command1_Click时,在顺序文件Person.txt中写入一条记录。下列能够完成该操作的事件过程是。

  • A.Private Sub Command1_Click()
  • Dim B As Books    Open"c":\Person.txt"For Output As #1
  • B.Name=InputBox("输入姓名")
  • B.Te1Num=InputBox("输入电话号码")    Write #1,B.Name,B.Te1Num
  • Close #1
  • End Sub
  • B.Private Sub Command1_Click()
  • Dim B As Books    Open"c":\Person.txt"For Input As #1
  • B.Name=InputBox("输入姓名")
  • B.Te1Num=InputBox("输入电话号码")    Prite #1,B.Name,B.Te1Num
¥

订单号:

遇到问题请联系在线客服

订单号:

遇到问题请联系在线客服