.NET IDE 2002 and 2003 resources compatibiliy

  • Thread starter Thread starter Alec Solter
  • Start date Start date
A

Alec Solter

Using .NET IDE 2003 I created a simple form that includes a button with
image. When trying to run this project on old .NET IDE 2002 it is throws the
following exception:

System.InvalidCastException: Specified cast is not valid.

It's happens on the following line in standard InitializeConmponent
function:

this.button1.Image =
((System.Drawing.Image)(resources.GetObject("button1.Image")));


Is it possible to work with resource containing C# files in cross
platform way (2002 and 2003 IDEs) ? Is there are any conversion utilities
for porting of these files?


Thanks in advance,
Alec Solter
 
Back
Top