Click here to Skip to main content
15,881,852 members
Articles / Programming Languages / C#
Article

Resource Editor for VS.NET 2003

Rate me:
Please Sign up or sign in to vote.
4.71/5 (14 votes)
30 Mar 20042 min read 137.2K   2.8K   48   19
A Resource Editor integrated on VS.NET 2003 using VSIPExtras.

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


Written By
Web Developer
Uruguay Uruguay
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Question_UnmanagedMemoryStream not possible to save? Pin
Campri8-Aug-07 0:38
Campri8-Aug-07 0:38 
GeneralA resource editor in C# 2.0 Pin
.NET slave25-Mar-06 7:33
.NET slave25-Mar-06 7:33 
QuestionResource Not Found ? Pin
Ariston Darmayuda23-Oct-05 6:31
Ariston Darmayuda23-Oct-05 6:31 
GeneralStrange behaviour with Compact Framework projects Pin
lonifasiko25-Aug-05 21:00
lonifasiko25-Aug-05 21:00 
GeneralTo install it and use. Pin
fanfan9517-May-05 5:05
fanfan9517-May-05 5:05 
GeneralResource rename Pin
dev_kh30-Sep-04 4:30
dev_kh30-Sep-04 4:30 
GeneralRe: Resource rename Pin
dev_kh1-Oct-04 4:14
dev_kh1-Oct-04 4:14 
GeneralRe: Resource rename Pin
Gaston1-Oct-04 5:59
Gaston1-Oct-04 5:59 
GeneralRe: Resource rename Pin
dev_kh1-Oct-04 6:05
dev_kh1-Oct-04 6:05 
GeneralRe: Resource rename Pin
dev_kh4-Oct-04 6:35
dev_kh4-Oct-04 6:35 
GeneralRe: Resource rename Pin
Gaston12-Nov-04 6:44
Gaston12-Nov-04 6:44 
GeneralNew Version Pin
Gaston21-Apr-04 2:41
Gaston21-Apr-04 2:41 
GeneralGreat job Pin
Nic Gorleer6-Apr-04 21:24
Nic Gorleer6-Apr-04 21:24 
GeneralRe: Great job Pin
Gaston7-Apr-04 1:55
Gaston7-Apr-04 1:55 
GeneralRe: Great job Pin
Guenter Szolderits21-Apr-04 1:50
Guenter Szolderits21-Apr-04 1:50 
GeneralRe: Great job Pin
AlexLennon9-May-04 21:02
AlexLennon9-May-04 21:02 
GeneralRe: Great job Pin
wardk2-Jun-05 4:42
wardk2-Jun-05 4:42 
GeneralLinks are dead Pin
Mike Wild31-Mar-04 21:34
Mike Wild31-Mar-04 21:34 
GeneralRe: Links are dead Pin
Gaston1-Apr-04 1:01
Gaston1-Apr-04 1:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.