如何创建动态列表框。 [英] How to Create Dynamic List Boxes.

查看:100
本文介绍了如何创建动态列表框。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以帮助我创建一个动态列表框。


我有一个带有项目列表的组合框(item1,item2,item3)。

item1有5个子商品

item2有10个子商品

item3有2个子商品


我想要列表框的大小要根据可用子项的数量而改变。


我希望这很清楚。


谢谢

解决方案


我想知道是否可以帮助我创建一个动态列表框。


我有一个带有项目列表的组合框(item1,item2,item3)。

item1有5个子项

item2有10个子项

item3有2个子项


我希望列表框的大小根据可用子项的数量而改变。


我希望这很清楚。


谢谢



唯一的方法是是使用代码。在组合框的更新后事件中,您需要更改列表框属性。

展开 | 选择 | Wrap | 行号


< blockquote class =post_quotes>
唯一的方法是使用代码。在组合框的更新后事件中,您需要更改列表框属性。

展开 | 选择 | Wrap | 行号


< blockquote class =post_quotes>
你好玛丽

3个项目就是一个例子,我最多有近15000个项目?

我不会知道每个选择会有多少。


显然我不会有列表框大到15000项(需要向下滚动列表),我想要能够指定最大尺寸以及是否只有3 i那么我希望列表框与3个项目一样大。

这有意义吗?


谢谢


Tara


我需要更多信息。这些15000个项目从哪里抽取,表格或查询?从哪个子项中抽取?如何区分项目的属性?


Mary


I was wondering if can some help me with creating a dynamic list box.

I have a combobox with the list of items (item1, item2, item3).
item1 has 5 sub items
item2 has 10 sub items
item3 has 2 sub items

I want the size of the list box to change depending on the number of sub items available.

I hope this is clear.

Thanks

解决方案

I was wondering if can some help me with creating a dynamic list box.

I have a combobox with the list of items (item1, item2, item3).
item1 has 5 sub items
item2 has 10 sub items
item3 has 2 sub items

I want the size of the list box to change depending on the number of sub items available.

I hope this is clear.

Thanks

The only way to do this is using code. In the after update event of the combo box you will need to change the listbox properties.

Expand|Select|Wrap|Line Numbers


The only way to do this is using code. In the after update event of the combo box you will need to change the listbox properties.

Expand|Select|Wrap|Line Numbers


Hi Mary
The 3 items was an example, I have maximum of almost 15000 items??
I won''t know how many will be there for each selection.

Obviously I won''t be having list box as big as to 15000 items (need to scroll down the list), I want to be able to specify the maximum size and also if there is only 3 item then I want the list box to be as big as that 3 items.
Does this make sense??

Thanks

Tara

I need a lot more information. Where are these 15000 items being drawn from, table or query? Where are the sub items being drawn from? How are the distinctions made as to what belongs with an item?

Mary


这篇关于如何创建动态列表框。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆