5,691,626 members and growing! (12,467 online)
Email Password   helpLost your password?
General Programming » Macros and Add-ins » VS.NET Add-ins     Intermediate

Resource Editor for VS.NET 2003

By Gaston

A Resource Editor integrated on VS.NET 2003 using VSIPExtras.
C#.NET 1.1, Win2K, WinXP, Win2003, Windows, .NET, Visual Studio, Dev

Posted: 30 Mar 2004
Updated: 30 Mar 2004
Views: 93,286
Bookmarked: 45 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
14 votes for this Article.
Popularity: 4.46 Rating: 3.89 out of 5
3 votes, 21.4%
1
0 votes, 0.0%
2
1 vote, 7.1%
3
2 votes, 14.3%
4
8 votes, 57.1%
5

Sample Image - ResourceEditor.jpg

Introduction

As we all know, working with image resources in .NET is hard. When I have a .resx file in my project, I find it difficult to update images, add new icons and so on, because the editor associated to .resx files is XML-based. So, for example, when I download a project from the Web and the project has a .resx file, I can't edit images easily.

Another problem for me is that there isn't an editor integrated on Visual Studio .NET. Then I have to switch application in order to edit a resx file. Even more difficult is to edit a .resources files.

A few days ago, Microsoft released VSIPExtras. Now everybody can develop a managed package integrated on Visual Studio. So I developed a package called ResourceEditor.

Features

  • Integrated on Visual Studio .NET 2003
  • Edit .resx and .resources files
  • Explore resources in .dll and .exe files, then for example, you can open and see the icons and bitmaps of any assembly. When a DLL or EXE file is opened, the editor automatically appends the .resx extension to the file.
  • Edit of bitmaps and icons using the default editors in VS.NET. (The default bitmap editor doesn't support more than 256 colors so that in these cases MS Paint is opened in order to edit the bitmap)
  • Additionally, edit imagelists, strings, etc.
  • You can add and delete bitmaps, icons and strings. (Bitmaps files are not locked in the file system after an add operation, try another resource editor and see if they have this feature :))
  • Separate tabs for images, icons, strings.

How to use it?

Well, you have to install the MSI file and try it. If you want to know what exactly the setup does, you can take a look to this post in my weblog.

There were the times when the installation was manual :). There isn't help integration, then don't worry about your VS help collection. After installing the MSI file, you have to use "Open with" if you want to open a file with this editor (I expect that you select it as your default editor for resx files in the future. :))

The Code

It was developed using VSIPExtras (more info about VSIP and VSIPExtras on the new site).

The skeleton of the editor is generated by the Package Wizard of VSIPExtras. After all, that is just C# programming. Obviously, the source code is installed. You can see some aspects that you are interested in.

You can find:

  • Working with VSIPExtras, calling VS Services, editor interfaces.
  • Working with resources.
  • Working with the property grid.
  • Working with bitmaps and icons.

I don't want to explain any particular point in this article (may be in the future).

Requirements

If you want to compile the code, you need:

  • Framework 1.1
  • Visual Studio .NET 2003
  • VSIP SDK first and VSIPExtras

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Gaston



Occupation: Web Developer
Location: Uruguay Uruguay

Other popular Macros and Add-ins articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 19 of 19 (Total in Forum: 19) (Refresh)FirstPrevNext
General_UnmanagedMemoryStream not possible to save?memberCampri1:38 8 Aug '07  
GeneralA resource editor in C# 2.0member.NET slave8:33 25 Mar '06  
QuestionResource Not Found ?memberRedaemon7:31 23 Oct '05  
GeneralStrange behaviour with Compact Framework projectsmemberlonifasiko22:00 25 Aug '05  
GeneralTo install it and use.memberfanfan956:05 17 May '05  
GeneralResource renamememberdev_kh5:30 30 Sep '04  
GeneralRe: Resource renamememberdev_kh5:14 1 Oct '04  
GeneralRe: Resource renamememberGaston6:59 1 Oct '04  
GeneralRe: Resource renamememberdev_kh7:05 1 Oct '04  
GeneralRe: Resource renamememberdev_kh7:35 4 Oct '04  
GeneralRe: Resource renamememberGaston7:44 12 Nov '04  
GeneralNew VersionmemberGaston3:41 21 Apr '04  
GeneralGreat jobmemberNic Gorleer22:24 6 Apr '04  
GeneralRe: Great jobmemberGaston2:55 7 Apr '04  
GeneralRe: Great jobsussGünter Szolderits2:50 21 Apr '04  
GeneralRe: Great jobmemberAlexLennon22:02 9 May '04  
GeneralRe: Great jobsusswardk5:42 2 Jun '05  
GeneralLinks are deadmemberMike Wild22:34 31 Mar '04  
GeneralRe: Links are deadmemberGaston2:01 1 Apr '04  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 30 Mar 2004
Editor: Smitha Vijayan
Copyright 2004 by Gaston
Everything else Copyright © CodeProject, 1999-2008
Web07 | Advertise on the Code Project