Prevent a DataGrid in Windows Form Getting Focus

G

Guest

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
 
C

Cowboy \(Gregory A. Beamer\)

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!
*************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top