从Windows.Forms.UserControl继承的控件的设计模式

编程入门 行业动态 更新时间:2024-10-09 23:18:42
本文介绍了从Windows.Forms.UserControl继承的控件的设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要派生Windows.Forms.Control 2次,所以我设计了一个类似 这个 公共类BMControl 继承System.Windows.Forms.UserControl 公共类MapControl 继承BMControl 现在,我该如何制作MapControl在设计模式下可以像标准一样编辑 System.Windows.Forms.UserControl? 现在,我没有在设计模式下看到UserControl表单,但是大面积 不可编辑....我无法设置大小,添加控件和类似的东西 System.Windows.Forms.UserControl - Ceers, Crirus ----------------- ------------- 如果工作是件好事,那么老板就会把这一切都从你身上拿走 - ----------------------------

I need to derive the Windows.Forms.Control 2 times so I design a class like this Public Class BMControl Inherits System.Windows.Forms.UserControl Public Class MapControl Inherits BMControl Now, how can I make MapControl editable in design mode just like standard System.Windows.Forms.UserControl? Right now, I dont see a UserControl form in design mode, but a large area non editable....I cant set the size, add controls, and stuffs like it was System.Windows.Forms.UserControl -- Ceers, Crirus ------------------------------ If work were a good thing, the boss would take it all from you ------------------------------

推荐答案

否ideeas? - Ceers, Crirus --- -------------------------- - 如果工作是件好事,老板就会把这一切都从你身上拿走 -------------- ---------------- " Crirus" <铬**** @ datagroup.ro>在消息中写道 新闻:e0 ************** @ TK2MSFTNGP12.phx.gbl ... No ideeas? -- Ceers, Crirus ------------------------------ If work were a good thing, the boss would take it all from you ------------------------------ "Crirus" <Cr****@datagroup.ro> wrote in message news:e0**************@TK2MSFTNGP12.phx.gbl... 我需要派生出来Windows.Forms.Control 2次,所以我设计了一个类这样的 公共类BMControl 继承System.Windows.Forms.UserControl 公开类MapControl 继承BMControl 现在,我如何在设计模式下使MapControl可编辑,就像标准的System.Windows.Forms.UserControl一样?现在,我在设计模式下没有看到UserControl表单,但是大面积不可编辑....我无法设置大小,添加控件和类似的东西 System.Windows.Forms.UserControl - Ceers, Crirus ----------------------- ------- 如果工作是件好事,老板会把这一切都从你身上拿走 ---------------- -------------- I need to derive the Windows.Forms.Control 2 times so I design a class like this Public Class BMControl Inherits System.Windows.Forms.UserControl Public Class MapControl Inherits BMControl Now, how can I make MapControl editable in design mode just like standard System.Windows.Forms.UserControl? Right now, I dont see a UserControl form in design mode, but a large area non editable....I cant set the size, add controls, and stuffs like it was System.Windows.Forms.UserControl -- Ceers, Crirus ------------------------------ If work were a good thing, the boss would take it all from you ------------------------------

" Crirus" <铬**** @ datagroup.ro> schrieb "Crirus" <Cr****@datagroup.ro> schrieb 我需要派生2次Windows.Forms.Control,所以我设计了这样的类 公共类BMControl 继承系统。 Windows.Forms.UserControl 公共类MapControl 继承BMControl 现在,我如何在设计模式下使MapControl可编辑,就像标准系统一样。 Windows.Forms.UserControl?现在,我没有在设计模式下看到UserControl表单,但是一个大的区域不可编辑....我无法设置大小,添加控件和东西 I need to derive the Windows.Forms.Control 2 times so I design a class like this Public Class BMControl Inherits System.Windows.Forms.UserControl Public Class MapControl Inherits BMControl Now, how can I make MapControl editable in design mode just like standard System.Windows.Forms.UserControl? Right now, I dont see a UserControl form in design mode, but a large area non editable....I cant set the size, add controls, and stuffs like it was System.Windows.Forms.UserControl

我创建了一个新项目,添加了3个usercontrols,更改了继承 语句(第二个usercontrol继承自usercontrol1,第三个usercontrol 继承自usercontrol2)并在设计器中打开usercontrol 3:我可以 添加/修改/删除像Usercontrols上直接导出的控件来自 Usercontrol。 (VB 2003 / Framework 1.1)=>不可复制 - Armin www.plig/nnq/nquote.html wwwmeister/news/learn2quote.html

I created a new project, added 3 usercontrols, changed the inherits statement (2nd usercontrol inherits from usercontrol1, 3rd usercontrol inherits from usercontrol2) and opened usercontrol 3 in the designer: I can add/modify/remove controls like on Usercontrols directly derived from Usercontrol. (VB 2003/Framework 1.1) => not reproducable -- Armin www.plig/nnq/nquote.html wwwmeister/news/learn2quote.html

我直接从Windows继承.Forms.Control 无论如何,我为了从一个控件继承而改变了,仍然无法设置 背景图像到大多数派生的控制 它不是在运行时模式下绘制的,即使我可以在设计师身上看到这个 时间 - Ceers, Crirus ---------------------- -------- 如果工作是件好事,老板会把这一切都从你那里拿走 ------- ----------------------- " Armin Zingler" < AZ ******* @ freenet.de>在消息中写道 news:eG ************** @ TK2MSFTNGP09.phx.gbl ... I inherited directly from Windows.Forms.Control Anyway, I changed in order to inherit from a control, and still cant set background image to most derived control It is not painted on run-time mode, even if I can see it on designer this time -- Ceers, Crirus ------------------------------ If work were a good thing, the boss would take it all from you ------------------------------ "Armin Zingler" <az*******@freenet.de> wrote in message news:eG**************@TK2MSFTNGP09.phx.gbl... " Crirus" <铬**** @ datagroup.ro> schrieb "Crirus" <Cr****@datagroup.ro> schrieb 我需要派生2次Windows.Forms.Control,所以我设计了这样的类 公共类BMControl 继承系统。 Windows.Forms.UserControl 公共类MapControl 继承BMControl 现在,我如何在设计模式下使MapControl可编辑,就像标准系统一样。 Windows.Forms.UserControl?现在,我没有在设计模式下看到UserControl表单,但是一个大的区域不可编辑....我无法设置大小,添加控件和东西我创建了一个新项目,添加了3个usercontrols,更改了继承语句(第二个usercontrol继承自usercontrol1,3nd usercontrol 继承自usercontrol2 )并在设计器中打开usercontrol 3:我 I need to derive the Windows.Forms.Control 2 times so I design a class like this Public Class BMControl Inherits System.Windows.Forms.UserControl Public Class MapControl Inherits BMControl Now, how can I make MapControl editable in design mode just like standard System.Windows.Forms.UserControl? Right now, I dont see a UserControl form in design mode, but a large area non editable....I cant set the size, add controls, and stuffs like it was System.Windows.Forms.UserControl I created a new project, added 3 usercontrols, changed the inherits statement (2nd usercontrol inherits from usercontrol1, 3rd usercontrol inherits from usercontrol2) and opened usercontrol 3 in the designer: I

可以添加/修改/删除类似于直接从用户控件派生的Usercontrol上的控件。 (VB 2003 / Framework 1.1)=>不可复制 - Armin www.plig/nnq/nquote.html wwwmeister/news/learn2quote.html

更多推荐

从Windows.Forms.UserControl继承的控件的设计模式

本文发布于:2023-11-11 08:46:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1577932.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   模式   Windows   Forms   UserControl

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!