[Gtk-sharp-list] Gtk entry only for digits?
Sun, 29 Aug 2004 01:41:43 -0600
I'm sure that you can do it with KeyPressEventArgs. What I would do if I
was you is print the key code that is received to the console when you
press numbers you will see what the key code is, just do a switch
statement on that keycode as a string and your set, only print the
numbers not letters.
On Sun, 2004-08-29 at 00:56, Michael wrote:
> Hi all,
> does anybody know how to modify a Entry that only numbers can be typed
> Like a SpinButton with the Numeric flag set, but without the Lower and
> Upper Arrow keys.
> I played with the KeyPressEventArgs to get the Key Codes from the
> keyboard. But even that seems not to work for numbers. Only for Function
> Keys, esc, etc.
> Thanks for your help
> Gtk-sharp-list maillist - Gtkfirstname.lastname@example.org