KF2
KF2

Reputation: 10143

Detect pressed key on Desktop

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

Answers (1)

Reed Copsey
Reed Copsey

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

Related Questions