[Mono-winforms-list] PictureBox, Resources and RTF text box problems
Paul
paul at all-the-johnsons.co.uk
Thu Feb 4 14:15:32 EST 2010
Hi,
> > pictureBox1.Image = foo.Properties.Resources.filename where filename is the
> > string that contains the filename? I've tried casting the string, but
> > nothing.
>
> pictureBox1.Image = Image.FromFile(foo.Properties.Resources.filename);
Must be doing something wrong as I keep getting a file not found
error...
When I type foo.Properties.Resources. I get the list of resources
stored. They don't have extensions listed. I've tried the filename with
and without the extension, but it still throws the error
> > and it comes out in plain text. No formatting or anything like that.
> >
> > Am I missing something here?
>
> Maybe OOO's RTF output is too complex for RichTextBox' little brain.
> Try to edit this RTF file with WordPad (it comes with Windows).
> This tool is known to generate suitable RTFs.
Thanks. Am I loading it in correctly though?
helptext.LoadFile(global::molarity.Properties.Resources.molarmass,
RichTextBoxStreamType.RichText);
TTFN
Paul
--
Sie können mich aufreizen und wirklich heiß machen!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20100204/dcf1273e/attachment.bin
More information about the Mono-winforms-list
mailing list