自定义控制 [英] Custom control
问题描述
我创建了一个基于Devexpress Calcedit的自定义控件(在Visual Studio 2017中,windows窗体为visual basic)。因此,我必须在自定义控件中添加对Devexpress组件的引用。到目前为止,没问题。控件在我的自定义类中。
I created a custom control based on Devexpress Calcedit (in Visual Studio 2017, windows forms visual basic). Therefore I had to add references to Devexpress components in the custom control. So far, no problem. the control is in my custom class.
当我将自定义控件放在新项目中的表单上时,一切正常,但我必须手动将Devexpress引用添加到我的新表单中。当我将自定义
组件拖到其上时,如何将Devexpress的引用自动添加到我的新表单中?
When I put my custom control on a form in a new project everything works OK, but I have to add the Devexpress references manually to my new form. How can I make that the references to Devexpress are added automatically to my new form when I drag my custom component onto it?
一旦我手动添加引用,我的自定义控件效果很好。
Once i added the references manually, my custom control works perfectly.
提前致谢!
推荐答案
此论坛是关于使用的一般问题.Net的VB程序语言
This forum is for general questions about using the VB program language for .Net
deexpress是这个论坛
For deexpress is this forum
https://community.devexpress.com/forums/
这篇关于自定义控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!