在VB中设置multiselect属性 [英] Set multiselect property in VB
问题描述
你好AGAIN
''需要解决的问题....
即时尝试在VB中设置MultiSelect属性列表框,我正在使用代码
Me.StaffHols.Multiselect = True
它不会工作,它说我不能给对象分配一个值,我已经尝试了很多方法让它工作(我之前已经有了这个工作)
所以我做错了什么?
Hello AGAIN
''Nother problem to solve....
im trying to set the MultiSelect property within VB for a list box, and i am using the code
Me.StaffHols.Multiselect = True
and it wont work, it says that i cannot assign a value to the object, ive tried many ways to get this to work (and i have had this working before)
so what am i doing wrong?
推荐答案
你好再来一次
''要解决的另一个问题....
即时尝试在VB中为列表框设置MultiSelect属性,我正在使用代码
Me.StaffHols.Multiselect = True
它不会工作,它说我无法为对象分配值,我尝试了很多方法让它工作(我之前有过这个工作)
所以我做错了什么?
Hello AGAIN
''Nother problem to solve....
im trying to set the MultiSelect property within VB for a list box, and i am using the code
Me.StaffHols.Multiselect = True
and it wont work, it says that i cannot assign a value to the object, ive tried many ways to get this to work (and i have had this working before)
so what am i doing wrong?
MultiSelect属性为0,1或2
无多边,简单或扩展
MultiSelect property is 0, 1 or 2
No Multi, Simple, or Extended
是的,我尝试了同样的错误
yeah i tried that as well same error
我查看了帮助部分,弹出了两件事:
I looked in the Help section and two things pop-out :
- It仅对ListBoxes有效。确保它是这样的,而不是你正在处理的ComboBox。
- 它说它只能在表单在设计视图中时更改。这对代码来说似乎很奇怪,但可能值得深入研究。
希望这会有所帮助。
PS。有效值仅为{0; 1; 2}。 True无效。假,相当于0,是。
Hope this helps.
PS. Valid values are only {0; 1; 2}. True is not valid. False, being equivalent to 0, is.
这篇关于在VB中设置multiselect属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!