[MonoDevelop] OnLoad?

Lluis Sanchez lluis at ximian.com
Mon Jun 5 06:48:11 EDT 2006


El dg 04 de 06 del 2006 a les 23:25 -0400, en/na JimD va escriure:

> OnRealized and OnShown are never called.  I want somewhere to put code like:
> 
> btnCancel.State = StateType.Insensitive;
> 
> 
> However, I cannot put it before the call to Stetic.Gui.Build() because I
>  get a NullReferenceException exception.

Put it after the Build call.

> 
> Where does one usually put window/widget setup code that needs to run
> before the window/form is shown?
> 
> Thanks,
> 
> Jim



More information about the Monodevelop-list mailing list