引用ListBox(列表框)当前被选中的数据项应使用()语句A、ListBox1.Items[ListBox1.Items.Count]B、ListBox1.Items[ListBox1.SelectedIndex]C、ListBox1.Items[ListBox1.Items.Count-1]D、ListBox1.Items[ListBox1.SelectedIndex-1]

引用ListBox(列表框)当前被选中的数据项应使用()语句

  • A、ListBox1.Items[ListBox1.Items.Count]
  • B、ListBox1.Items[ListBox1.SelectedIndex]
  • C、ListBox1.Items[ListBox1.Items.Count-1]
  • D、ListBox1.Items[ListBox1.SelectedIndex-1]

相关考题:

要获得文件列表框中当前被选中的文件的文件名,则应使用哪个属性A.DirB.PathC.DriveD.FileName

引用列表框(Listl)最后一个数据项应使用的表达式是( )。A.Listl.List(List..ListCount)B.Listl.List(Listl.ListCount-1)C.Listl.List(ListCount)D.Listl.List(ListCount-1)

引用列表框List1被选中项数据应使用( )。A、 List1.listB、 List1.listCountC、 List1.IndexD、 List1.Text

引用列表框(List1)最后一个数据项应使用()。A、List1.List(Listl1.ListCount)B、List1.List(Listl.ListCount-1)C、List1.List(ListCount)D、Listl.List(ListCounr-1)

引用列表框ListBox1最后一个数据项应使用()。 A、ListBox1.Items(ListBox1.Items.Count)B、ListBox1.Items(ListBox1.Items.Count-1)C、ListBox1.TextD、ListBox1.Items(ListBox1.SelectedIndex)

向列表框中的最后填加一个新项目,正确的语句是()。 A、ListBox1.Items.Add(“HowareYou“)B、ListBox1.Items.Insert(“HowareYou“)C、ListBox1.Items.Add(2,“HowareYou“)D、ListBox1.Items.Insert(2,“HowareYou“)

在下面对列表框(ListBox1)的操作中,正确的语句是()。 A、Listbox1.Items.ClsB、ListBox1.Items.Remove(4)C、ListBox1.Items.Remove(“计算机“)D、ListBox1.Items.Add(1,“打印机“)

在窗体上有一个列表框,名称为List1,该列表框中有三个选项,分别为“123”、“456”和“789”,当前没有任何选项被选中,则执行List1.RemoveItem List1.ListIndex语句后,移去的是( )。A.123B.456C.789D.出错

在窗体上画一个驱动器列表框、一个目录列表框和一个文件列表框,其名称分别为 Drivel、Dirl和Filel。当改变目录列表框的内容时,要求文件列表框中显示当前选中的文件夹中的内容,则在Dirl_Change事件过程中应使用的语句是______。A.Dirvel.Drive=Dirl.PathB.Dirl.Path=Drivel.DriveC.Dirl.Path=Filel.PathD.Filel.Path=Dirl.Path

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

引用列表框(List1)最后一个数据项应使用的语句是()。 A、List1.List(List1.ListCount)B、List1.List(List1.ListCount-1)C、List1.List(ListCount)D、List1.List(ListCount-1)

假如列表框(List1)有4个数据项,那么把数据项"China"添加到列表框的最后,应使用的语句是() A、List1.AddItem3,〝China〞B、List1.AddItem〝China〞,List1.ListCount-1C、List1.AddItem〝China〞,3D、List1.AddItem〝China〞,List1.ListCount

在窗体上画一个驱动器列表框、一个目录列表框和一个文件列表框,其名称分别为 Drive1、Dir1和File1。当改变目录列表框的内容时,要求文件列表框中显示当前选中的文件夹中的内容,则在Dir1_Change事件过程中应使用的语句是 ______。A.Dirvel.Drive=Dir1.PathB.Dir1.Path=Drive1.DriveC.Dir1.Path=File1.PathD.File1.Path=Dir1.Path

假如列表框(List1)有四个数据项,那么把数据项“China”添加到列表框的最后,应使用()语句。A、List1.AddItem3,"China"B、List1.AddItem"China",List1.List1Count-1C、List1.AddItem"China",3D、List1.AddItem"China"

引用列表框List1最后一个数据项应使用()。A、List1.List(List1.ListCount)B、List1.List(List1.ListCount-1)C、List1.List(ListCount)D、List1.List(ListCount-1)

向列表框中的最后填加一个新项目,正确的语句是()A、ListBox1.Items.Add ("How are You")B、ListBox1.Items.Insert ("How are You")C、ListBox1.Items.Add (2, "How are You")D、ListBox1.Items.Insert (2, "How are You")

引用ListBox(列表框)最后一个数据项应使用()语句A、ListBox1.Items[ListBox1.Items.Count]B、ListBox1.Items[ListBox1.SelectedIndex]C、ListBox1.Items[ListBox1.Items.Count-1]D、ListBox1.Items[ListBox1.SelectedIndex-1]

假如列表框(List1)有四个数据项,那么把数据项“China”添加到列表框的最后,应使用语句()。A、List1.AddItem 3, "China"B、List1.AddItem "China", List1.List1Count-1C、List1.AddItem "China", 3D、List1.AddItem "China", List1.List1Count

假如列表框(List1)有四个数据项,把数据项“数据库原理”添加到列表框的最后,应使用()语句。A、List1.AddItem“数据库原理”,List1.ListCountB、List1.AddItem“数据库原理”,List1.ListCount-1C、List1.AddItem3,“数据库原理”D、List1.AddItem“数据库原理”,3

要获得文件列表框中当前被选中的文件的文件名,则应使用哪个属性().A、DirB、PathC、DriveD、FileName

单选题引用ListBox(列表框)当前被选中的数据项应使用()语句AListBox1.Items[ListBox1.Items.Count]BListBox1.Items[ListBox1.SelectedIndex]CListBox1.Items[ListBox1.Items.Count-1]DListBox1.Items[ListBox1.SelectedIndex-1]

单选题引用ListBox(列表框)最后一个数据项应使用()语句AListBox1.Items[ListBox1.Items.Count]BListBox1.Items[ListBox1.SelectedIndex]CListBox1.Items[ListBox1.Items.Count-1]DListBox1.Items[ListBox1.SelectedIndex-1]

单选题列表框中被选中的数据项的位置可以通过一个属性获得,这个属性是(  )。AListBListIndexCTextDListCount

单选题下列关于列表控件(ListBox)的说法,错误的是(  )。A当列表框的RowSourceType为0时,在程序运行中,可以通过AddItem方法添加列表框条目B列表框可以有多个列,即一个条目可包含多个数据项C不能修改列表框中Value属性的值D列表框控件可显示一个数据项列表,用户只能从中选择一个条目

单选题假如列表框(List1)有四个数据项,把数据项“数据库原理”添加到列表框的最后,应使用()语句。AList1.AddItem“数据库原理”,List1.ListCountBList1.AddItem“数据库原理”,List1.ListCount-1CList1.AddItem3,“数据库原理”DList1.AddItem“数据库原理”,3

单选题假如列表框(List1)有四个数据项,那么把数据项“China”添加到列表框的最后,应使用语句()。AList1.AddItem 3, ChinaBList1.AddItem China, List1.List1Count-1CList1.AddItem China, 3DList1.AddItem China, List1.List1Count

单选题假如列表框(List1)有四个数据项,那么把数据项“China”添加到列表框的最后,应使用()语句。AList1.AddItem3,ChinaBList1.AddItemChina,List1.List1Count-1CList1.AddItemChina,3DList1.AddItemChina