[Mono-list] Initalize

Matthew Hazlett hazlema at gmail.com
Sat Jan 8 12:57:40 EST 2011


I have a MainWindow that contains a button that's wired up with an ID 
and a click event.  I have it so when the button is clicked it loads a 
picture into the button by doing

imgBtn.Image = new NSImage(...);

I tried moving these statements to the initialize function and they gave 
the exception 'object not defined'.  Where should I put this 
initialization so it will fire when the app is  launched and after the 
objects have been created.

Sorry for such a basic question, its my second day looking at mono :-)



More information about the Mono-list mailing list