[Gtk-sharp-list] Gtk# Image question

Jacek Rużyczka stacheldraht at interia.pl
Sun Sep 18 06:51:24 EDT 2011


Am Sonntag 18 September 2011, 04:45:01 schrieb mbeattie:
> I was following a tutorial for some HelloWorld thing and was wondering how
> to make it insert an image in place of the text label.  So I was trying to
> use Gtk.Image("filename.jpg") which both compiles and runs but displays no
> image.  I am using monodevelop... where is it looking for this image?  Do I
> need to import it into the "solution" somewhere?
> 
Yes, you need to import the image as a resource into your solution. To do 
this, open the "Stock icons" node in the solution tree and define a new icon 
using your image file.

Kind regards
Jacek

----------------------------------------------------------------
Skoda Octavia z 2009 roku juz za 11 tys. zl
http://linkint.pl/f2a36


More information about the Gtk-sharp-list mailing list