So you want no input at all, not even the barcode reader, except '-'? Put this in the keypress event:
LPARAMETERS nKeyCode, nShiftAltCtrl
IF !CHR(nKeyCode)='-'
NODEFAULT
ENDIF
I have not tested it, but it should work.
>hi to all,
>
>is't posible to disabled the keyboard input in my textbox and use only the "-" negative sign only in the keyboard and barcode scanner input? how?
>
>im using barcode scanner that attached on my keyboard ps2,
>im using VFP7.
>
>please help,
>
>TIA
>Ryan