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

Re: .NET IDE 2002 and 2003 resources compatibiliy by Jay

Jay
Thu Nov 27 08:33:46 CST 2003

Alec,
There is a utility at Code Project that will convert a VS.NET 2003 solution
back to VS.NET 2002.

http://www.codeproject.com/macro/vsconvert.asp

It includes converting resources.

Hope this helps
Jay

"Alec Solter" <alecsolt@netvision.net.il> wrote in message
news:uYNHARMtDHA.2508@TK2MSFTNGP12.phx.gbl...
> 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
>
>