You can disable grids, which will not allow a user to do anything, but I am
not sure it stops click events from firing. As another option, consider
spinning the scanner on another thread to avoid any sort of focus loss
interference.
--
Gregory A. Beamer
*************************************************
Think Outside the Box!
*************************************************
"Tedmond" <Te*****@discussions.microsoft.com> wrote in message
news:A9**********************************@microsof t.com...
Dear all,
How to prevent a datagrid in Windows form getting focus? Even user click
on
it.
I use barcode scanner as input and display the result in a datagrid. My
problem is when the datagrid got focus, the scanner input will be
discarded.
I cannot find any event to handle the input.
Thanks,
Tedmond