单项选择题

若要设置文本框中所显示的文本颜色,使用的属性是______。

A.BackColor
B.FillColor
C.ForeColor
D.BackStyle
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序输出的结果为______。 x=1 y=4 Do Until y>4 x=x*y y=y + 1 Loop Print x
A.4
B.8
C.12
D.16
单项选择题
在窗体上有一名为list1的列表框和名为Command1的命令按钮,要求程序运行后;如果单击命令按钮,则把列表框中所有的列表项目写到顺序文件list.txt 中。下列能完成该操作的程序是______。
A.Private Sub Command1_Click()
Open “c:\list.txt”For Input As #1
For i=0 To Listl.ListCount-1
Print #1,List1.List(i)
Next i
Close #1
End Sub
B.Private Sub Command1_lick()
Open “c:\list.txt”For Output As #1
For i=0 To List1.ListCount
Print #1,List1.List(i)
Next i
Close #1
End Sub
C.Private Sub Command1_Click()
Open “c:\list.txt”For Output As #1
For i=0 To List1.ListCount -1
Print #1,List1. List(i)
Next i
C1ese #1
End Sub
D.Private Sub Command1_Click()
Open “c:\list.txt”For As #1
For i=0 To List1.ListCount
Print #1,List1.List(i)
Next i
Close #1
End Sub
相关试题
  • 在C盘当前文件夹下建立一个名为StuData.tx...
  • 有如下Sub过程: Sub ind(a As Intege...
  • 窗体中有两个命令按钮:“显示”(控件名为...
  • 以下程序代码实现单击命令按钮Command1时...
  • VB中的控件分为内部控件、ActiveX控件和 ...