[Gtk-sharp-list] resource file

underdog10@netcourrier.com underdog10@netcourrier.com
Fri, 30 Jul 2004 17:55:37 CEST


OK great it is working.
Sorry for being so long but i did not undestand, than you don't need to cr=
eate a resource file.
you need to add your picture file to the resources files.

Thanks a lot.

KaYa.

----Message d'origine----
>Sujet: Re: Re: =5BGtk-sharp-list=5D  resource file
>De: Fredrik Nilsson <jymdman=40home.se>
>A: underdog10=40netcourrier.com
>Copie =E0: gtk-sharp-list <gtk-sharp-list=40lists.ximian.com>
>Date: 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=3Dxbgm.png
>> =

>> In the My windows Class:
>> ResourceManager rm;
>> =

>> In public MyWindow ():
>> rm =3D new ResourceManager(typeof(MyWindow));
>> =

>> then to access data:
>> Gdk.Pixbuf pixbuf =3D new Gdk.Pixbuf (null, =22xbgm.png=22);
>> =

>> =

>> 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
>
>
>

-------------------------------------------------------------
NetCourrier, votre bureau virtuel sur Internet : Mail, Agenda, Clubs, Tool=
bar...
Web/Wap : www.netcourrier.com
T=E9l=E9phone/Fax : 08 92 69 00 21 (0,34 =80 TTC/min)
Minitel: 3615 NETCOURRIER (0,16 =80 TTC/min)