[Mono-winforms-list] Some basic questions on Winforms.
Wed, 13 Apr 2005 20:50:40 +0200
El dt 12 de 04 del 2005 a les 19:25 -0400, en/na Wei Weng va escriure:
> 2: How do I bind a shortcut key to an action/function without using the
> setting the shortcut key in MainMenu/ContextMenu? (Can not set menu in my
> current mono setup either. Always complains about set_Menu method, throwing
> a NullReferenceException)
There was a problem that I have just fixed in SVN. You have to compile
mono yourself to get the fix or wait to the next release.
You can set the shortcut assigned to a MenuItem using the constructor of
the object (two accept the shortcut as parameter) or the Shortcut
property. Both should work.
Jordi Mas i Hernāndez - Mono development team - http://www.mono-project.com
Homepage and LiveJournal at http://www.softcatala.org/~jmas