English 中文(简体)
设计者的作用c c
原标题:Role of Designer.cs File in c#

我正在把设计者.cs档案放在我的项目中,档案中的评论说,它是由自动工具生成的。

这是一项现有的项目,因此我对此没有多少了解。 它是为数据库中所有表格的图表组成的一个图表。

I am using a SQLIte DB. Can any one help me in understanding what is the use of the Designer.cs file in a C# project.

最佳回答

在视觉演播项目中,设计者的文件有kinds。 共同之处是:

  • PropertiesResources.resxResources.Designer.cs file, the auto-generated code from adding resources to the Project + Resources tab
  • PropertiesSettings.settingsSettings.Designer.cs file, the auto-generated code from adding settings to the Project + Settings tab
  • SomeForm.csSomeForm.Designer.cs, the auto-generated code produced by the Winforms designer from the controls you drop on a form
  • SomeData.xsdSomeData.Designer.cs, the auto-generated code produced by the dataset designer.

鉴于你在您的提问中点名了一个数据库,你可能会谈论最后一个数据库。 你们应该看到描述的格局,在视觉演播室里,你使用一个视觉设计器,并制作C#代码,在操作时间有用。 你们从设计商.cs返回设计商加植被,在解决方案探索者窗口中把母子双向浮标。 如果设计者重新制定该法典,你就会失去一切。 出于这一原因,它们在某种程度上被隐藏在解决方案探索者身上。 如果你发现它们的话:打开看它们的声音。

问题回答

Designer.cs contains the declaration and initialization of UI controls and layout of form. The form is rendered based on the information provided in designer.cs. This file is autogenerate when a form is created in design mode.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签