[MonoDevelop] Embedded Resources

Ben Motmans ben.motmans at gmail.com
Wed Aug 8 04:42:57 EDT 2007


monodevelop does not generate any code to access resources more easily, so
you will have to do it the default .NET way, by calling
someAssembly.GetManifestResourceStream

an example:
http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=75

-- Ben

On 8/8/07, mitcheloc <mitcheloc at gmail.com> wrote:
>
> Hello All,
>
> First, thanks for monodevelop. It's a great tool! :)
>
> I've added an image and a sql script as a resource to a monodevelop C#
> project. I can't seem to figure out how to reference it from inside my
> code.
>
> In Visual Studio 2005 I was referencing the files in my code by using:
>
> string script = Glue.Properties.Resources.Script1;
> PictureBox1.Image = Glue.Properties.Resources.Skin;
>
> Thanks in advance,
> Mitchel
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20070808/fd32fa97/attachment-0001.html 


More information about the Monodevelop-list mailing list