我们如何在.net Windows应用程序中使用在计算机中注册的.net控件 [英] how can we use the .net controls registered in the computer in our .net windows application
问题描述
你好
我正在创建一个类似应用程序的框架.在那个运行时中,我想添加不同的.net控件和设计,然后我又想运行那些现在不需要的任何设计方法.如果要在运行时单击应用程序中的.net控件,我想要的是在应用程序中.在系统中注册的.net控件必须出现在窗口中,然后必须从中选择控件并将其添加到应用程序中.
我们如何实现这一目标
请重播我
问候
ginnas
hello
i am creating a framework like application. in that run time i wanted to add different .net controls and design and again i wanted to run the things which designed any way that that is not needed now. what i want is in our application during run time if we click a button named .net controls the .net controls registered in the system has to appear in a window and from there i have to select the controls and add it in to the application .
how can we achieve this
please replay me
regards
ginnas
推荐答案
[回答问题的评论中的一个问题:]
[Answering one of the questions in comments to the question:]
所以我在Visual Studio中存在疑问,而设计时我们可以使用工具箱中的其他控件,所以我的问题是可以在运行时使用这些控件,如何访问这些.net控件,有什么办法?
so i have a doubt in visual studio while design time we can use different controls from the toolbox right , so my question is , is it possible to use these controls at run time ,how can we access these .net controls ,is there any way
我说过,控件总是在运行时使用;没有别的办法了.就像这样:
As I say, controls are always used during run-time; there is no other way. It''s done like:
someConrol.Parent = somePanel; // for example
// or, same thing:
somePanel.Controls.Add(someControl);
这篇关于我们如何在.net Windows应用程序中使用在计算机中注册的.net控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!