0

プログラムのアイコンを変更したところ、VB.netエラーが発生しました。

プログラムを実行しようとすると、次のエラーが発生します。

An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll  Additional information: Exception has been thrown by the target of an invocation.

デザイナーに戻って元のアイコンを復元しようとすることはできません。Ford Design ページに次のメッセージを含むページが表示されます。

To prevent possible data loss before loading the designer, the following errors must be resolved: 

The parameter is incorrect 
Instances of this error (1)  
at System.Drawing.Icon.Initialize(Int32 width, Int32 height)
at System.Drawing.Icon..ctor(Stream stream, Int32 width, Int32 height)
at System.Drawing.Icon..ctor(Stream stream)
at System.Drawing.IconConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfoculture, Object value)
at System.ComponentModel.TypeConverter.ConvertFrom(Object value)
at System.Resources.ResXDataNode.GenerateObjectFromDataNodeInfo(DataNodeInfo dataNodeInfo, ITypeResolutionService typeResolver)
at System.Resources.ResXDataNode.GetValue(ITypeResolutionService typeResolver)
at System.Resources.ResXResourceReader.ParseDataNode(XmlTextReader reader, Boolean isMetaData)
at System.Resources.ResXResourceReader.ParseXml(XmlTextReader reader)`

助言がありますか?old iconこの時点で、を復元してプログラムを再開する方法を見つけたいだけです。

4

1 に答える 1

1

試す

Remove the line Me.Icon = .... 

新しいアイコンを追加するには、プロパティ ウィンドウでデザイナーに移動し、必要なアイコンを追加します。

于 2013-06-26T20:58:59.897 に答える