开发者

What is the relevance of *.resx file in Windows Forms/controls? [duplicate]

This question already has answers here: 开发者_运维技巧 Closed 12 years ago.

Possible Duplicate:

purpose of form1.designer.cs and form1.resx

I Understand about *.designer file grouped with a windows form/control file. But not sure what is the relevance and use of *.resx file attached.

Can i not create a form/control with this file attached to it?


The Windows Forms designer persists designed forms by generating code. Lots of control properties are however difficult to express in code. A form's Icon property or a PictureBox' Image property for example. Lots of bytes associated with them. The .resx file format was optimized to store those property values.

A secondary use for them is to be able to easily localize your UI design. The designer makes it easy, it automatically generates .resx files for each language you support.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜