P
PeterB
Hi!
Using _managed_ code but PInvoking coredll.dll, I know you can use:
SetWindowLong(hwnd, GWL_STYLE, 0|ES_NUMBER)
to set a textbox as Numeric only. But this doesn't work for decimal numbers
(5,40 ; 0,23) nor does it accept negative values. Is there a way to get that
functionality or will it require a custom control which overrides
keydown/keypress events?
Thanks ni advance!
/ Peter
Using _managed_ code but PInvoking coredll.dll, I know you can use:
SetWindowLong(hwnd, GWL_STYLE, 0|ES_NUMBER)
to set a textbox as Numeric only. But this doesn't work for decimal numbers
(5,40 ; 0,23) nor does it accept negative values. Is there a way to get that
functionality or will it require a custom control which overrides
keydown/keypress events?
Thanks ni advance!
/ Peter