Hello everyone, I am using Gtk# in C#. But I am facing a problem. I have a Gtk.TextBox. Now I am connecting KeyPressEvent of Gtk.TextBox, using the following code.
TextBox is txtinput
this.txtinput.KeyPressEvent += new KeyPressEventHandler(this.txtinput_key_press_event);
and event handler function is
[GLib.ConnectBefore]void txtinput_key_press_event(object sender, KeyPressEventArgs args)
Now, I want to block certain keys. In GTK+ in C, this keypressevent handler function has return type of gboolean. So, it was easy to block certain keys. But, how this can be achieved in Gtk# in C#. Please Answer!!