设列表框的名称是List1.下列错误的语句是()A、list1.list(1)=str(List1.ListCount)B、form1.caption=list1.list(1)C、list1.list(0)=”Visualbasic”D、list1.listcount=100

设列表框的名称是List1.下列错误的语句是()

  • A、list1.list(1)=str(List1.ListCount)
  • B、form1.caption=list1.list(1)
  • C、list1.list(0)=”Visualbasic”
  • D、list1.listcount=100

相关考题:

设有数组定义语句:Dim a(5) As Integer,List1为列表框控件。下列给数组元素赋值的语句错误的是A.a(3)=3B.a(3)=InputBox("inputdata")C.a(3)=List1.ListlndexD.a=Array(1,2,3,4,5,6)

在窗体上画一个名称为 Listl 的列表框,一个名称为 Labell 的标签,列表框中显示若干城市的名称。当单击列表框中的某个城市名时,该城市名从列表框中消失,并在标签中显示出来。下列能正确实现上述操作的程序是( )。A.Privale Sub List1_Click()Label1.Caption=List1. ListIndexList1.Removeltem List1.TextEnd SubB.Private Sub List1_Click()Label1.Name=List1. ListIndexList1.RemoveItem List1.TextEnd SubC.Private Sub List1_Click()Label1.Caption=List1.TextList1.RemovItem List1.ListIndexEnd SubD.Private Sub List1_Click()Label1.Name=List1. TextList1.RemoveItem List1. ListIndexEnd Sub

设A为已定义的类名,下列声明A类的对象a的语句中正确的是()A.float Aa;B.Public Aa=A();C.Aa=new int();D.static Aa=new A();

设有数组定义语句:Dim a(5) As Integer,List1为列表框控件。下列给数组元素赋值的语句错误的是( )。A.a(3) =3B.a(3) =inputbox("input data")C.a(3) =List1.ListIndexD.a=Array(1,2,3,4,5,6)

用什么语句可以选择指定的表项或取消已选择的表项?( )。A.列表框.Selected(索引值)B.列表框名.Selected(索引值) =True|FalseC.列表框.SelectedD.列表框名.Selected=True|False

在窗体上画一个名为List1的列表框、一个名为Label1的标签。列表框中显示若干城市的名称。当单击列表框中的某个城市名时,在标签中显示选中城市的名称。下列能正确实现上述功能的程序是______。A.Private Sub List1_Click() Label1. Caption=List1. ListIndex End SubB.Private Sub List1_Click() Label1. Name=List1. ListIndex End SubC.Private Sub List1_Click() Label1. Name=List1. Text End SubD.Private Sub List1_Click() Label1. Caption=List1. Text End Sub

(23)窗体上有一个命令按钮Command1和一个列表框List1.先选择列表框中的某一个项目,然后单击命令按钮,将该项目从列表框删除。程序如下: Private Sub Commandl_Click() Dim In As Integer In___________ List.Remove Ind End Sub 则在程序的空白行的语句是 A.List1.Index B.List1.ListIndex C.List1.Text D.List1.ListCount

(23)设有数组定义语句:Dim a(5)As Integer,并设List1为列表框控件。下列给数组元素赋值的语句错误的是A.a(3)=3 B.a(3)=inputbox("inputdata") C.a(3)=List1.ListIndex D.a=Array(1,2,3,4,5,6)

设A为已定义的类名,下列是声明A类的对象a的语句中正确的是A.public A a=new A( );B.public A a=A();C.A a=new class();D.a A;

设A为已定义的类名,下列声明类A的对象a的语句中正确的是 ( )A.float A a;B.public A a=A();C.A a=new int();D.A a=new A();

在窗体上画一个名称为Lisu的列表框,为了对列表框中的每个项目都能进行处理,应使用的循环语句为 ______。A.For i = 0 To List1. ListCount-1 NextB.For i = 0 To List1.Count-1 NextC.For i = 0 To List1. ListCount NextD.For i = 0 To List1. Count Next

下列语句中,获得列表框List1中项目个数的语句是A.x=List1.ListCountB.x=ListCountC.x=List1.ListlndexD.x=ListIndex

在窗体上画一个名称List1的列表框,一个名称为Label1的标签。列表框中显示若干城市的名称。当单A.Private Sub list1_Click() Label1. Caption= List1. ListIndex End SubB.Private Sub Listl_Click() Label1. Name= List1. ListIndex End SubC.Private Sub List1_Click() Label1. Name== List1. Text End SubD.Private Sub List1_Click() Label1. Caption: List1. Text End Sub

下列语句中,获得列表框Listl中项目个数的语句是A.x=List1.ListCountB.x=ListCountC.x=List1.ListIndexD.x=ListIndex

设A为已定义的类名,则下列声明A类的对象a的语句中正确的是( )。A.public A a=new A();B.public A a=A();C.A a=new class();D.a A;

设有数组定义语句:Dima(5)AsInteger,Listl为列表框控件。下列给数组元素赋值的语句错误的是( )。A.a(3)=3B.a(3)=inputbox("inputdata")C.a(3)=Listl.ListlndexD.a=Array(1,2,3,4,5,6)

设有数组定义语句:Dim a(5)As Integer,并设List1为列表框控件。下列给数组元素赋值的语句错误的是( )。A.a(3)=3B.a(3)=inputbox("inputdata")C.a(3)=List1.List1ndexD.a=Array(1,2,3,4,5,6)

设A为已定义的类名,则下列声明A类的对象a的语句中正确的是( )。A.publicAa=newA()B.publicAa=A()C.Aa=newclass();D.aA;

要把名称为List1的列表框中当前选中的一项删除,应执行以下语句中的 ______。A.List1.CIearB.List1.Delete List1. ListIndexC.List1.ClearList1.ListIndexD.List1.List1.Remove ListIndex

以下语句中哪句可以选择指定的表项或取消已选择的表项A.列表框.Selected(索引值)B.列表框.Selected(索引值)=True|FalseC.列表框.SelectedD.列表框.Selected=True|False

设有数组定义语句:Dim a(5) As Integer,并设List1为列表框控件。下列给数组元素赋值的语句错误的是( )。A.a(3)=3B.a(3)=inputbox("inputdata")C.a(3)=List1.ListIndexD.a=Army(1,2,3,4,5,6)

假设有文件列表框File1、驱动器列表框Drivel和目录列表框Dirl,为了使三者同步,在下列语句中,正确的语句是 ______。 Ⅰ.FilePath=Did.Path Ⅱ.FileFileName=Dirl.FileName Ⅲ.Dirl.Path=Drivel.Drive Ⅳ.Dirl. Path=Drivel. PathA.Ⅰ和ⅢB.Ⅰ和ⅣC.Ⅰ、Ⅲ和ⅣD.以上全部

设A为已定义的类名,下面声明类A的对象a的语句中正确的是()A、floatAa;B、publicAa=A();C、Aa=newint();D、A?a=newA();

清除list1列表框对象的内容的语句是list1.cls。

下面有关文件管理控件的说法正确的是()A、ChDir语句的作用是指明新的缺省工作目录,同时也改变目录列表框的Path属性值B、改变文件列表框的FileName属性值,仅改变列表框中显示的文件名,不会引发其他事件C、改变驱动器列表框的ListIndex属性值,会改变Drive属性值并触发Change事件D、单击目录列表框中某一项,会触发Change事件

单选题设A为已定义的类名,下面声明类A的对象a的语句中正确的是()AfloatAa;BpublicAa=A();CAa=newint();DA?a=newA();

单选题下面有关文件管理控件的说法正确的是()AChDir语句的作用是指明新的缺省工作目录,同时也改变目录列表框的Path属性值B改变文件列表框的FileName属性值,仅改变列表框中显示的文件名,不会引发其他事件C改变驱动器列表框的ListIndex属性值,会改变Drive属性值并触发Change事件D单击目录列表框中某一项,会触发Change事件