Re: PictureBox, Resources and RTF text box problems

Paul <[email protected]>
Newsgroups gmane.comp.gnome.winforms
Organization Home
Message-ID <[email protected]>
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!

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEABECAAYFAktrHNQACgkQaomOUCNPh0I1KgCeO2uOQrPBumSqVA2Mapuc8m+Z
8NMAn3tZEidyxLXJbFeVAQy07wjbvIvn
=fqiC
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.