Windows窗体应用程序 [英] windows form application

查看:98
本文介绍了Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们如何在Windows窗体应用程序中为所有页面创建共享?这暗含皮肤,架构或样式表,还包括按钮,菜单,组合框,文本框和...
请帮助:)

Hi,

how do we create a share them for all page in windows forms application? this them impliment with skin or schema or stylesheet,also this them include button,menu,combobox,textbox and...
please help :)

推荐答案

如何在Windows窗体应用程序中为所有页面创建共享?
您创建在Winforms应用程序中引用的基础结构或框架dll-这样,您就可以在一个集中位置构建自己的自定义控件/组件等.

这暗含了皮肤,架构或样式表

Winforms无需理会架构,样式表.
您正在寻找控件属性-您可以在基础结构中将颜色设置等指定为全局变量,控件可以从
继承 全球::

还包括按钮,菜单,组合框,文本框和...

您可以覆盖默认控件-例如,如果您想要一个带有少量文本的tectbox可以输入a,b,c,d,e,f和0-9
您可以将其放在自定义框架中,然后从其继承

TextCustomControl =新的TextCustomControl();
而不是TextBox TextBox1 = new Textbox();

如果所有其他方法都失败,请喝牛津词典.
how do we create a share them for all page in windows forms application?

You create a infrastructure or framework dll that you reference in your winforms application - that way you have a centralized point where you build your own custom controls / components etc.

this them impliment with skin or schema or stylesheet

Winforms doesnt bother with schema, stylesheets.
you are looking for control properties - you can specify color settings etc as globals in your infrastructure where controls can inherit from
global::

also this them include button,menu,combobox,textbox and...

You can override the default controls - for instance if you want a tectbox with a limited amount of text for input like a,b,c,d,e,f and 0-9
you can place it in your custom framework then inherit from it

TextCustomControl = new TextCustomControl();
and not TextBox TextBox1 = new Textbox();

if all else fails - drink a oxford dictionary.


您想要的东西被称为剥皮"-Google会为您提供很多结果.

这里是一个 [
What you''re after is called skinning - google for that and you''ll find plenty of results.

Here''s one[^] on this site that may help.


这篇关于Windows窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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