两个表格上的共同小组 [英] common panel on 2 forms

查看:62
本文介绍了两个表格上的共同小组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




在我的项目中,我有2个表格;两个都有一个共同的面板(使用组合框,

文本框,标签,方法......)。

是否有可能创建该组件,然后将其添加到2

表格?

如果是,怎么样?


提前致谢;

Hi,

In my project, I have 2 forms; both have a common panel (with combobox,
textbox, labels, methods, ...).
Is it possible to create that compoment separetly and then add it to the 2
forms?
If yes, how?

Thanks in advance;

推荐答案

NM,


只需从中创建自己的继承面板。


给我们只需添加新>项>用户控制,而不是更改代码中的toprow" usercontrol"对于你想在这个
案例面板中继承的控件。然后继续当你知道怎么做时很容易做到。


我希望这有帮助吗?


Cor


您好,
NM,

Just create your own inherited panel from that.

To di ut us just Add new> item> user control and than change in the code of
that the toprow "usercontrol" for the control you want to inherit in this
case panel. and go on. It is very easy to do when you know how.

I hope this helps?

Cor

Hi,

在我的项目中,我有2个表格;两个都有一个共同的面板(有组合框,
文本框,标签,方法......)。
是否有可能创建该组件,然后将其添加到2
表单中?
如果是,怎么样?

提前致谢;

In my project, I have 2 forms; both have a common panel (with combobox,
textbox, labels, methods, ...).
Is it possible to create that compoment separetly and then add it to the 2
forms?
If yes, how?

Thanks in advance;



*" NM" < NM **** @ hotmail.com> scripsit:
* "NM" <NM****@hotmail.com> scripsit:
在我的项目中,我有2个表格;两个都有一个共同的面板(有组合框,
文本框,标签,方法......)。
是否有可能创建该组件,然后将其添加到2
表单中?
In my project, I have 2 forms; both have a common panel (with combobox,
textbox, labels, methods, ...).
Is it possible to create that compoment separetly and then add it to the 2
forms?




" Project" - > Add UserConntrol ...。


-

Herfried K. Wagner [MVP]

< URL :http://dotnet.mvps.org/>



"Project" -> "Add UserConntrol...".

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


谢谢Cor,


但普通面板不是''在两个表格上的相同位置并且两个表格上没有相同的尺寸;

所以我的表格不能继承面板;


" Cor Ligthert" <无********** @ planet.nl>一个écritdansle message de

新闻:%2 **************** @ TK2MSFTNGP11.phx.gbl ...
Thanks Cor,

But the common panel isn''t at the same position on the 2 forms and haven''t
the same size on both of them;
So my forms can''t inherit the panel;

"Cor Ligthert" <no**********@planet.nl> a écrit dans le message de
news:%2****************@TK2MSFTNGP11.phx.gbl...
NM,

只需创建自己的继承面板。

我们只需添加新的>项>用户控制而不是改变代码
的toprow" usercontrol"对于要在此
案例面板中继承的控件。然后继续当你知道怎么做时很容易做到。

我希望这有帮助吗?

你好,
NM,

Just create your own inherited panel from that.

To di ut us just Add new> item> user control and than change in the code of that the toprow "usercontrol" for the control you want to inherit in this
case panel. and go on. It is very easy to do when you know how.

I hope this helps?

Cor

Hi,

在我的项目中,我有两种形式;两个都有一个共同的面板(有组合框,
文本框,标签,方法......)。
是否有可能创建该组件,然后将其添加到
2表格?
如果是,怎么样?

提前致谢;

In my project, I have 2 forms; both have a common panel (with combobox,
textbox, labels, methods, ...).
Is it possible to create that compoment separetly and then add it to the 2 forms?
If yes, how?

Thanks in advance;




这篇关于两个表格上的共同小组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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