Am I missing something or is it really true that the built-in resource editor in VS.NET only supports strings? I can't find anyway to put binary files (for example, a bitmap) into a ResX in VS.NET's resource editor. Thankfully, there's Lutz Roeder's Resourcer.
And lucky for me Mr. Roeder makes the source available because it needs a tweak. You can pass a .resources file to Resourcer, but when it starts up it won't open the file -- it's just not programmed to do that. This means you can't set up an association in Windows Explorer and you can't use it from within VS.NET by modifying the "Open With..." for .resources files. Time to edit some C# code!
Change the code in Main() to this:
string initFilename = null;
if( args.Length > 0 )
initFilename = args;
Now change the constructor to be two constructors:
public MainFrame() : this(null)
public MainFrame(string file)
Not really required, but since the original contained a parameterless constructor, I wanted to make sure this one still would. Finally, at the bottom of the constructor, replace the New_Click(this, null) line with the following code:
if( file == null )
Compile and enjoy!