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

admin2012-03-22  29

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

选项 A、Private Sub Text1_GotFocus()     Text1.SelStart=0     Text1.SelLength=Len(Text1.Text)     End Sub  
B、Private Sub Text1_LostFocus()     Text1.SelStart=0     Text1.SelLength=Len(Text1.Text)     End Sub  
C、Private Sub Text1_Change()     Text1.SelStart=0     Text1.SelLength=Len(Text1.Text)     End Sub  
D、Private Sub Text1_SetFocus()     Text.SelStart=0     Text1.SelLength=Len(Text1.Text)     End Sub

答案A

解析
转载请注明原文地址:https://kaotiyun.com/show/VGhp777K
0

最新回复(0)