2

i am working on a vsto excel project, and i want to capture keypress, and keydown events on the worksheet.

i have tried globalKeyboardHook

but it gives exception, please any one have a solution, please provide guidance in right direction.

i want to capture the cell contents and provide auto suggest feature based on the contents, as the user types in the cell.

thank you in advance.

Milan Solanki
  • 1,207
  • 4
  • 25
  • 48

1 Answers1

1

You can easily achieve it using the GetAsyncKeyState() WinAPI function, but it would be a bad practice if you need a solid application that needs to work on different environments.

Kovags
  • 540
  • 3
  • 16