.NET IDE 2002 and 2003 resources compatibiliy

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top