您如何创建自定义控件? [英] How do u create custom controls?

查看:99
本文介绍了您如何创建自定义控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要几个自定义控件,第一个需要允许文本输入并附加一些按钮(或下拉菜单),以允许使用不同的功能.

我想会有更多细节,但这会使问题复杂化,所以现在,如何创建带有文本输入和菜单栏以及菜单栏上的自定义功能的自定义控件?

亲切的问候

Richard

解决方案

只需在Visual Studio中启动UserControl项目.它将为您提供开始所需的一切.


请查看本文,以获取有关过程的说明: ^ ].在您自己尝试了几件事并遇到障碍之后,请再次发布引发您麻烦的代码,我们会为您提供更好的帮助.你请谷歌还是先搜索MSDN?


I need several custom controls, the first one needs to allow text entry and have some buttoms attached to it (or drop down menu) that allows different functions to be used.

I suppose more detail would belp, but that will complicate the question, so for now, how do I create a custom control with text entry and a menu strip and custom functions on the menu strip?

Kind Regards

Richard

解决方案

Just start a UserControl project in Visual Studio. It will provide everything you need to start.


Check this article for a description of the process: Shameless Self-promotion[^]. After you''ve tried a few things yourself and run into a block, post again with the code that''s causing you trouble and we can provide better assistance.


oh man, could you please google or search MSDN first?


这篇关于您如何创建自定义控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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