Reputation: 10143
I want to know how can i detect which key pressed (for example on Desktop or my computer ).
when detect pressed key show it with MessageBox
how can i do this?
Upvotes: 1
Views: 489
Reputation: 564373
Detecting the key presses outside of your application requires installing a Low Level Keyboard Hook. Here is a CodeProject article demonstrating the process.
Upvotes: 1