在运行阶段,要在文本框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.SelStart=Len(Text1.text) End Sub
B.Private Sub Text1_LostFocus() Text1.SelStart=0 Text1.SelStart=Len(Text1.text) End sub
C.Private Sub Text1_Change() Text1.SelStart=0 Text1.SelStart=Len(Text1.text) End sub
D.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
在运行阶段,要在文本框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
程序运行时,若要在文本框Text1获得焦点时,在文本框中显示变量s的值,可用下列______事件过程实现。A.Private Sub Text1_Change() Text1.Text = s End SubB.Private Sub Text1_LostFocus() Text1.Text = s End SubC.Private Sub Text1_Setfocus() Text1.Text = s End SubD.Private Sub Text1_Gotfocus() Text1.Text = s End Sub