如何在运行时创建和添加自定义控件。 [英] How to create and add the Custom control at run time.
本文介绍了如何在运行时创建和添加自定义控件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
我的要求是我有一个菜单条。这将包含多个自定义控件。 textbox,picbox,richtext等。如果我选择任何一个控件,那么控件将添加到富编辑控件文档上的任何位置。如何实现我的目标。我不知道该怎么办。我正在使用c#。 Dvexpres
Hi
My requirment is I''ve one menu strip. that will contains multiple custom controls. textbox,picbox,richtext,etc.. If i select any one control then the control will add to wherever cursur placed on rich edit control document. How to achive my goal. I dont know how to proceed. i''m using c#. Dvexpres
推荐答案
您需要参考DevExpress文档 - 这里是该站点提供的示例的链接http://documentation.devexpress.com/#WindowsForms/CustomDocument2254 [ ^ ]
您可能需要将picturebox和richtextbox替换为他们在示例中使用的控件。
如果您需要更多示例,请使用此链接 [ ^ ]
You need to refer to the DevExpress Documentation - here''s a link to the examples provided by that site http://documentation.devexpress.com/#WindowsForms/CustomDocument2254[^]
You may need to substitute picturebox and richtextbox for the controls that they use in the examples.
If you need further examples then use this link[^]
这篇关于如何在运行时创建和添加自定义控件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文