form1.designer.cs 和 form1.resx 的目的 [英] Purpose of form1.designer.cs and form1.resx

查看:39
本文介绍了form1.designer.cs 和 form1.resx 的目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在做vb.net,我不明白这两个文件的用途:

I've been doing vb.net for a while and I don't understand the purpose of these two files:

  • form1.designer.cs
  • form1.resx

有人可以向我解释一下吗?

Can someone please explain them to me?

推荐答案

form1.designer.cs 是一个自动生成的文件,对应于 form1.cs.这个想法是,Visual Studio 表单设计器可以将其自动生成的代码放在 form1.designer.cs 中,而不必担心弄乱您所做的任何更改.

form1.designer.cs is an auto-generated file that corresponds to form1.cs. The idea is that the Visual Studio form designer can put its auto-generated code in form1.designer.cs without having to worry about messing up any changes that you may have made.

form1.resx 最常用于存储您想要翻译成不同语言的字符串,这样您就不会将它们硬编码到您的应用中.

form1.resx is most commonly used for storing strings that you want to translate into different languages so you don't hardcode them into your app.

这篇关于form1.designer.cs 和 form1.resx 的目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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