VB NET自定义用户控件:使用填充了字符串的Combobox的属性编辑器 [英] VB NET Custom User Controls: Property editor that uses a Combobox populated with strings

查看:260
本文介绍了VB NET自定义用户控件:使用填充了字符串的Combobox的属性编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的自定义控件中添加一个属性,它使用一个组合框编辑器,填充其父级中其他控件的名称。

我已经有一个arraylist或string( ),包含要填充的控件的名称,但最好的方法是什么。

我理解Enums将创建正确的外观,但我不想以编程方式使用枚举。 br />

I'd like to add a property to my custom control, that uses a combobox editor, populated with the names of other controls in it's parent.
I already have an arraylist, or string(), containing the names of the controls to be populated but what's the best way of going about this.
I understand Enums will create the right appearance, but I'd rather not use an enum programatically.

Public Property FlowItemJoins As ArrayList
    Get
        Return marrControlNameList
    End Get
    Set(value As ArrayList)
        marrControlNameList = value
        panel.Refresh() 'Forces the repaint of it's parent
    End Set
End Property

推荐答案

粗鲁。无论如何我不想要答案。
Rude. I didn't want an answer anyway.


这篇关于VB NET自定义用户控件:使用填充了字符串的Combobox的属性编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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