[Gtk-sharp-list] resource file
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:
> 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");
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.