[Mono-winforms-list] Adding a resource file

Paul paul at all-the-johnsons.co.uk
Wed Jan 24 20:53:08 EST 2007


Hi,

It's probably down to it being 1.45am in the UK and I've only had a few
hours sleep (something do with my dreams being invaded by images of a
certain young Latin American female singer covered in honey...) but my
brain has stopped working for a moment!

Am I correct when adding res files to a some code to use

gmcs foo.cs -r:System.Windows.Forms -r:System.Drawing -res:a.png, b.png,
c.png -t:winexe

if the png files are in the same directory as foo.cs?

If I am right, then there is a problem with mono 1.2.2.1 as all I'm
getting is

Unhandled Exception: System.Resources.MissingManifestResourceException:
Could not find any resource appropriate for the specified culture or its
parents. Make sure "bmtest.Form1.resources" was correctly embedded or
linked into assembly "button-new"

Do I need to create a resources file?

TTFN

Paul
-- 
"Mmmmmmmm....Shakira geschmiert mit schokolade" sagt Homer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070125/5eb45c26/attachment.bin 


More information about the Mono-winforms-list mailing list