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

最后都变了- 提交于 2021-01-27 04:11:07

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/2996636/what-is-the-relevance-of-resx-file-in-windows-forms-controls

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!