Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Distributed Applications / November 2003

Tip: Looking for answers? Try searching our database.

.NET IDE 2002 and 2003 resources compatibiliy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alec Solter - 27 Nov 2003 08:59 GMT
   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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.