通过()属性,可返回用户在编辑框控件中选择的字符数目。
A:SelStart B:SelText C:SelLength D:Value
可以获得文本框当前插入点所在位置的属性是______。
A:Position B:SelStart C:SelLength D:Left
通过文本框的( )属性可以获得当前插入点所在的位置。
A:Position B:SelStart C:SelLength D:SelText
用来设置文本框有无滚动条的属性是( )。
A:ScrollBars B:MultiLine C:SelText D:SelLength
能够获得一个文本框中被选取文本的内容的属性是______。
A:Text B:SelLength C:SelText D:SelStart
在窗体上有两个文本框控件和一个命令按钮,名称分别为Text1、Text2和Command1,以下程序实现的功能是当单击Command1按钮时,将把Text2控件中的文本全部选中,并把焦点设置在该文本框中。程序运行时的界面如图20-4所示,以下两空应填( )。
Private Sub Command1_Click( ) Text2.SelStart=0 Text2.________=Len(Text2.Text) Text2._______ End Sub
A:SelLength SetFocus B:SelText SetFocus C:SelLength GetFocus D:SelText GetFocus
在窗体上画一个名称为Combol的组合框,名称为Text1的文本框,以及名称为Command1的命令按钮,如图所示。
运行程序,单击命令按钮,将文本框中被选中的文本添加到组合框中,若文本框中没有选中的文本,则将文本框中的文本全部添加到组合框中。命令按钮的事件过程如下: Private Sub Command1_Click( ) If Text1.SelLength<>0 Then Else Combo1.AddItem Text1 End If End Sub 程序中横线处应该填写的是()。
A:Combo1.AddItem Text1.Text B:Combo1.AddItem Text1.SelStart C:Combo1.AddItem Text1.SelText D:Combo1.AddItem Text1.SelLength