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
Jay B. Harlow [MVP - Outlook] - 27 Nov 2003 14:33 GMT
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
> 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
[quoted text clipped - 14 lines]
> Thanks in advance,
> Alec Solter