网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
引用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

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

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

考题 引用列表框(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,“打印机“)

考题 目录列表框中的( )属性用来设置和返回目录列表框中当前选中的目录。A.DriveB.PathC.NameD.Pattern

考题 在窗体上画一个驱动器列表框、一个目录列表框和一个文件列表框,其名称分别为 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"

考题 向列表框中的最后填加一个新项目,正确的语句是()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]

考题 引用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

考题 单选题引用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.AddItem3,ChinaB List1.AddItemChina,List1.List1Count-1C List1.AddItemChina,3D List1.AddItemChina

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

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

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

考题 单选题将数据项“China”添加到列表框List1中成为第一项,应使用的语句是()。A List1.AddItemChina,0B List1.AddItemChina,1C List1.AddItemChina,D List1.AddItem1,China

考题 单选题引用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]