C# - 创造无形的用户控件 [英] c# - create invisible user control

查看:116
本文介绍了C# - 创造无形的用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要建立在C#.net用户控件,它可以添加到应用程序而不可见的 - 就像的FolderBrowserDialog。这是我将使用往往一个新的窗口,所以我认为这是正确的方式。该窗口将当调用ShowDialog的,方法与其他已知的对话框打开。

I need to create a user control in C#.Net, which can be added to the application without being visible - just like the FolderBrowserDialog. It's a new window which I'll be using often so I think this is the right way. The window will be opened by envoking the showDialog-Method as known from the other dialog.

你知道吗? 感谢和问候,

Any Idea? Thanks and regards,

丹尼尔

推荐答案

由于所有这些隐形控制从Component类派生的,你应该通过阅读MSDN文章就可以启动: http://msdn.microsoft.com/en-us/library/system.componentmodel.component.aspx

Since all these "invisible" controls derive from Component class, you should start by reading the MSDN article on it: http://msdn.microsoft.com/en-us/library/system.componentmodel.component.aspx.

这篇关于C# - 创造无形的用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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