积极答复者
解决方案管理器里多出了一个文件

问题
-
我的解决方案管理器里好像多出了一个文件,估计是我刚开始的时候什么都不懂,糊里糊涂弄出来的,现在想删又不敢删,帮我看下这是什么文件。
我的MainForm先有两个文件, MainForm.Designer.vb和MainForm.resx,这个我可以理解。但问题是 在 MainForm.resx下面又出来个MainForm1.Designer.vb,(不是和MainFrom.resx平行,而是以子文件的形式缩进一些). 这是为什么?
另问题更复杂的是, MainForm.resx中只有一项: $this.TrayHeight, 而且系统警告 "$this.TrayHeight"不是有效的表示符。
我曾经在这个Form上放过一个ImaginList,现在已经删了。这个 $this.TrayHeight是不是Imaginlist留下的东西?既然这个文件的都报警了,我是不是可以把它下面的 MainForm1.Designer.vb也删掉?
我把MainForm1.Designer.vb的内容写在下面,请看看是干什么的:
'------------------------------------------------------------------------------
' <auto-generated>
' 此代码由工具生成。
' 运行时版本:2.0.50727.4927
'
' 对此文件的更改可能会导致不正确的行为,并且如果
' 重新生成代码,这些更改将会丢失。
' </auto-generated>
'------------------------------------------------------------------------------
Option Strict On
Option Explicit On
Imports System
Namespace My.Resources
'此类是由 StronglyTypedResourceBuilder
'类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
'若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
'(以 /str 作为命令选项),或重新生成 VS 项目。
'''<summary>
''' 强类型资源类,用于查找本地化字符串等。
'''</summary>
<Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"), _
Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), _
Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()> _
Public Class MainForm
Private Shared resourceMan As Global.System.Resources.ResourceManager
Private Shared resourceCulture As Global.System.Globalization.CultureInfo
<Global.System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")> _
Friend Sub New()
MyBase.New
End Sub
'''<summary>
''' 返回此类使用的缓存 ResourceManager 实例。
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Public Shared ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
Get
If Object.ReferenceEquals(resourceMan, Nothing) Then
Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("Viewstar.MainForm", GetType(MainForm).Assembly)
resourceMan = temp
End If
Return resourceMan
End Get
End Property
'''<summary>
''' 为使用此强类型资源类的所有资源查找
''' 重写当前线程的 CurrentUICulture 属性。
'''</summary>
<Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
Public Shared Property Culture() As Global.System.Globalization.CultureInfo
Get
Return resourceCulture
End Get
Set
resourceCulture = value
End Set
End Property
End Class
End Namespace
答案
全部回复
-
-
VS自动管理的,不报错就不用管
http://feiyun0112.cnblogs.com/
谢谢,不过问题是:系统警告 "$this.TrayHeight"不是有效的表示符。我在其他的Form上也发现了这个"$this.TrayHeight",却没有警告。