如何显示从当前项目到下拉列表属性的表格. [英] How to show forms from current project to dropdown property..

查看:80
本文介绍了如何显示从当前项目到下拉列表属性的表格.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,有人可以帮助我,如何显示项目中的表单列表.

我有一个按钮,该按钮具有名为FormToShow的自定义属性.
当我单击FormToShow属性时,我想在下拉列表中列出项目中的所有表单.我该如何实现?
如果需要,我该如何使用UITypeEditor?如何在下拉列表中列出所有表格?
非常感谢任何输入和样本.
非常感谢您..::)

Hi can someone please help me, how to show the list of forms in project.

I have a button which has a customized property named FormToShow.
I want to list in dropdown all the forms in my project when i click the FormToShow Property. how do I achieve this?
do I need to use UITypeEditor?if so, how do i list all the forms in dropdown?
any inputs and samples is very much appreciated.
thank you very much.. :)

推荐答案

您需要编写代码才能执行此操作,没有任何内置操作可完成.您也许可以使用反射来检查项目中的所有类并显示具有正确基类的所有类.
You need to write code to do this, there''s nothing build in to do it. You could perhaps use reflection to check all the classes in your project and show all the ones with the correct base class.


谢谢您的答复,

@Toli,先生,我需要在设计时显示它,而不是在运行时显示.

@克里斯蒂安,反思,我也这样认为,但我不知道从哪里开始,你有样品吗?

谢谢..:)
Hi thanks for your reply,

@Toli, sir i need to show it in design time, not in run time.

@Christian, Reflection, i think so also but i don''t know where to start, do you have any sample?

thanks.. :)


这篇关于如何显示从当前项目到下拉列表属性的表格.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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