[Mono-osx] How to disable the close button

Troy Dawson troy-dawson at comcast.net
Thu Jan 12 15:33:01 UTC 2012


On Jan 12, 2012, at 2:40 AM, Chris Waldron wrote:

> Need some help disabling the close button.  The Window.StandardWindowButton doesn't seem to work.

this.StandardWindowButton(NSWindowButton.CloseButton).Enabled = false;

works for me . . .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20120112/904cf4cf/attachment.html 


More information about the Mono-osx mailing list