>>>I'm using an edit box to capture the swiped data. Two questions:
>>>
>>>1. I don't want the user to see the edit box. However, if I set visible .f., it will not accept data.
>>>
>>>2. With the edit box, I do not want the user to key in data, except for Escape or perhaps a '1', but otherwise I want nothing to happen if he doesn't follow instructions and keys in other data. How do I do that?
>>>
>>>Thanks,
>>>
>>>Yossi
>>
>>May be you set editbox position to -100, -100 (for example), so user would not see it?
>Thanks. Now how about my 2nd question? :)
Set the Editbox
Enabled = .F. and
DisabledBackColor = DisabledForeColor
That way he /she cannot type anything and also cannot see anything. If you really need any user input, then use another editbox or textbox for that. More control then over what to use and discard.