在运行阶段,要在文本框Textl获得焦点时选中文本框中所有内容,对应的事件过程是A.Private Sub Text1_GotFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End SubB.Private Sub Text1_LostFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End SubC.Private Sub Text1_Change() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End SubD.Private Sub Text1_SetFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub

在运行阶段,要在文本框Textl获得焦点时选中文本框中所有内容,对应的事件过程是

A.Private Sub Text1_GotFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub

B.Private Sub Text1_LostFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub

C.Private Sub Text1_Change() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub

D.Private Sub Text1_SetFocus() Text1.SelStart=0 Textl.Se1Length=Len(Text1.Text) End Sub


相关考题:

要在文本框获得焦点时操作文本框中的内容,应该在事件过程中编写程序。A. GotFocus B. LostFocus C. Change D. SetFocus

窗体上有名称为Cornmandl的命令按钮和名称为Textl的文本框Private Sub Commandl_Click()Textl.Text=“程序设计”nxt1.SetFocusEnd SubPrivate Sub Textl_GotFocus()Textl.Text=”等级考试”End Sub运行以上程序,单击命令按钮后A.文本框中显示的是“程序设计”,且焦点在文本框中B.文本框中显示的是“等级考试”,且焦点在文本框中C.文本框中显示的是“程序设计”,且焦点在命令按钮上D.文本框中显示的是“等级考试”,且焦点在命令按钮上

一般来说,当一个文本框获得焦点时,可将其内容设置为选中状态。实现此功能应该编写文本框的获得焦点事件程序。 () 此题为判断题(对,错)。

在运行阶段,要在文本框Text1获得焦点时选中文本框中所有内容,对应的事件过程是( )A.Private Sub Text1_GotFocus() Text1.SelStart=0 Text1.SelStart=Len(Text1.text) End SubB.Private Sub Text1_LostFocus() Text1.SelStart=0 Text1.SelStart=Len(Text1.text) End subC.Private Sub Text1_Change() Text1.SelStart=0 Text1.SelStart=Len(Text1.text) End subD.Private Sub Text1_SetFocus() Text1.SelStart=0 Text1.SelStart=Len(Text1.text) End sub

在运行阶段,要在文本框Text1获得焦点时选中文本框中所有内容,对应的事件过程是A.Private Sub Text1_GotFocus() Text1.SelStart=0 Text1.SelLength=Len(Text1.Text) End SubB.Private Sub Text1_LostFocus() Text1.SelStart=0 Text1.SelLength=Len(Text1.Text) End SubC.Private Sub Text1_Change() Text1.SelStart=0 Text1.SelLength=Len(Text1.Text) End SubD.Private Sub Text1_SetFocus() Text.SelStart=0 Text1.SelLength=Len(Text1.Text) End Sub

要在文本框获得焦点时操作文本框中的内容,应该在( )事件过程中编写程序。A.GoFocusB.LostFocusC.ChangeD.SetFoeus

在运行阶段,要在文本框Textl获得焦点时选中文本框中所有内容,如图1所示,对应的事件过程是( )。

在窗体上有一个名为Textl的文本框。当光标在文本框中时,如果按下字母“A”,则可被调用的事件过程是。 A.Form_KeyPress B.Textl_LostFocus C.Textl_Click D.Textl_Change

要在文本框获得焦点时操作文本框中的内容,应该在( )事件过程中编写程序。A.GotFocusB.LostFocusC.ChangeD.SetFocus