"本地化"继承形式? [英] "Localizing" inherited forms?

查看:64
本文介绍了"本地化"继承形式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我有一些我希望制作的继承表格localizable,

很遗憾,我希望没有任何项目"本地化"实际上是b * b是本地化的。例如,我有几个属性设置表格中某些标签的

文本,这些标签是从基本表单继承的,

这些文本值不是"局部"有没有人有任何想法我要去

错了?


尼克。

Hi there,

I have some inherited forms that I wish to make "localizable",
unfortunately none of the items I wish to be "localizable" are actually
being "localized". For example, I have a few of properties which set the
text of some labels on the form which are inherited from the base form,
these text values aren''t "localized" Has anyone any ideas where I''m going
wrong?

Nick.

推荐答案

嗨再次,


我已经通过为每个控件制作访问修饰符找到了解决方法

我希望可以进行本地化"受保护的"而不是朋友,那么我可以直接在设计师中设置

属性,而不是通过我自己的属性。

我希望有一个属性,我可以设置我自己的

属性,我希望可以本地化?感谢您提供的任何提示

预付款。


尼克。


Nak < a@a.com>在消息中写道

新闻:OG ***************** @ TK2MSFTNGP12.phx.gbl ...
Hi again,

I''ve found a way round it by making the access modifier for each control
I wish to make localizable "Protected" rather than "Friend", then I can set
the property in the designer directly rather than through my own property.
I was hoping that there would be an attribute that I could set to my own
properties that I wish to be localizable? Thanks for any tips with this in
advance.

Nick.

"Nak" <a@a.com> wrote in message
news:OG*****************@TK2MSFTNGP12.phx.gbl...
你好,

我有一些我希望制作的可本地化的遗传形式,不幸的是,我希望所有的项目都不是可本地化的。实际上是本地化的。例如,我有一些属性设置表格上某些标签的
文本,这些标签是从基本形式继承的,这些文本值不是本地化的。有没有人知道我要走错了什么?

尼克。
Hi there,

I have some inherited forms that I wish to make "localizable",
unfortunately none of the items I wish to be "localizable" are actually
being "localized". For example, I have a few of properties which set the
text of some labels on the form which are inherited from the base form,
these text values aren''t "localized" Has anyone any ideas where I''m going
wrong?

Nick.



" Nak" < a@a.com>在消息中写道

新闻:OX ************** @ TK2MSFTNGP11.phx.gbl ...
"Nak" <a@a.com> wrote in message
news:OX**************@TK2MSFTNGP11.phx.gbl...
我希望那里是一个属性,我可以设置我自己的属性,我希望可以本地化?
I was hoping that there would be an attribute that I could set to my
own properties that I wish to be localizable?




属性


System.ComponentModel.BrowsableAttribute(True)


将使属性在属性窗口中可见。


HTH,
Phill W.



The attribute

System.ComponentModel.BrowsableAttribute(True)

will make the property visible in the Properties window.

HTH,
Phill W.


Nick,

基本表格是在同一个程序集中还是在不同的程序集中?


如果基本表单在不同的程序集中,那么当您发现需要使用受保护的时,需要使用受保护的。或受保护的朋友或能够在派生形式中设置控件

属性。


我还没有尝试过,你不能设置基本形式是localizable&

本地化只是基本形式,然后本地化只是派生形式?虽然如果你需要重新排列控件,我可以看到派生形式需要的位置

来改变基本控件的位置......

希望这有帮助

Jay


Nak < a@a.com>在消息中写道

新闻:OX ************** @ TK2MSFTNGP11.phx.gbl ...
Nick,
Is the base form in the same assembly or a different assembly?

If the base form is in a different assembly, then as you found you need to
use "Protected" or "Protected Friend" to be able to set a controls
properties in the derived form.

I have not tried it, can''t you set the base form to be localizable &
localize just be base form, then localize just the derived form? Although if
you need to rearrange controls, I can see where the derived form would need
to change the location of base controls...

Hope this helps
Jay

"Nak" <a@a.com> wrote in message
news:OX**************@TK2MSFTNGP11.phx.gbl...
嗨再次,

我找到了一种方法,通过为每个
控件创建访问修饰符,我希望使其可以本地化保护。而不是朋友,然后
我可以直接在设计师中设置属性,而不是通过我自己的
属性。我希望有一个属性,我可以设置我自己的属性,我希望可以本地化?感谢您提前提出的任何提示。

尼克。

Nak < a@a.com>在消息中写道
新闻:OG ***************** @ TK2MSFTNGP12.phx.gbl ...
Hi again,

I''ve found a way round it by making the access modifier for each
control I wish to make localizable "Protected" rather than "Friend", then
I can set the property in the designer directly rather than through my own
property. I was hoping that there would be an attribute that I could set
to my own properties that I wish to be localizable? Thanks for any tips
with this in advance.

Nick.

"Nak" <a@a.com> wrote in message
news:OG*****************@TK2MSFTNGP12.phx.gbl...
你好,
我有一些我希望制作的可本地化的遗产形式,不幸的是,我希望没有任何项目是可本地化的。实际上是本地化的。例如,我有一些属性设置表格上某些标签的
文本,这些标签是从基本形式继承的,这些文本值不是本地化的。有没有人知道我哪里出错?

尼克。
Hi there,

I have some inherited forms that I wish to make "localizable",
unfortunately none of the items I wish to be "localizable" are actually
being "localized". For example, I have a few of properties which set the
text of some labels on the form which are inherited from the base form,
these text values aren''t "localized" Has anyone any ideas where I''m
going wrong?

Nick.




这篇关于&QUOT;本地化&QUOT;继承形式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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