[Gtk-sharp-list] resource file
Fredrik Nilsson
jymdman@home.se
Fri, 30 Jul 2004 17:48:29 +0200
On fre, 2004-07-30 at 15:37 +0000, wrote:
> Thanks for your help.
>
> I had your line and now i get this message:
> resource must be a valid resource name of 'assembly'.
>
> I am getting closer.
>
> So i have in my resource file:
> xbgmlogo=xbgm.png
>
> In the My windows Class:
> ResourceManager rm;
>
> In public MyWindow ():
> rm = new ResourceManager(typeof(MyWindow));
>
> then to access data:
> Gdk.Pixbuf pixbuf = new Gdk.Pixbuf (null, "xbgm.png");
>
>
> Regards,
> Kaya
>
Have you added the file xbgm.png to Resource Files in monodevelop?
If you do that, you shouldn't have to use the ResourceManager stuff.
/Fredrik