c# - GTK# Window Icon Not working -


does know why fails run. have code , file named logo.png in same directory. run code , fails, saying cant find file

using system; using gtk;  public class trackbox {      static int main() {         application.init();          //create window         window mywin = new window("trackbox");         mywin.seticonfromfile("logo.png");         mywin.resize(200, 100);           //create label , put text in it.              label mylabel = new label();         mylabel.text = "welcome trackbox";          //add label form              mywin.add(mylabel);          //show              mywin.showall();          application.run();          return 0;     } } 

it returns error saying can't find logo.png... why this? help.

the solution place icon next executable. though icon had in root solution folder looks in root executable folder.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -