[MonoDevelop] What to use instead?

Levi Bard taktaktaktaktaktaktaktaktaktak at gmail.com
Fri Sep 22 01:14:42 EDT 2006


> Hi people, I would like to know what I use instead of a e.KeyChar
> command in a key press event in a gtk# application to obtain what key
> the user has just pressed, thanks in advance.

Assuming your handler signature looks like `protected virtual void
KeyPressHandler(object o, Gtk.KeyPressEventArgs args)` , you'd do
something like `Convert.ToChar(args.Event.KeyValue)`

-- 
Tcsh: Now with higher FPS!
http://www.gnu.org/philosophy/shouldbefree.html


More information about the Monodevelop-list mailing list