Click here to Skip to main content
15,897,291 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# SQL data check like in PHP??? Pin
Werdna23-Sep-04 11:38
Werdna23-Sep-04 11:38 
GeneralRe: C# SQL data check like in PHP??? Pin
cemlouis23-Sep-04 12:20
cemlouis23-Sep-04 12:20 
Generalreading a file Pin
cmarmr23-Sep-04 3:42
cmarmr23-Sep-04 3:42 
GeneralRe: reading a file Pin
Heath Stewart23-Sep-04 6:21
protectorHeath Stewart23-Sep-04 6:21 
GeneralRe: reading a file Pin
cmarmr23-Sep-04 8:12
cmarmr23-Sep-04 8:12 
GeneralRe: reading a file Pin
StealthyMark24-Sep-04 1:16
StealthyMark24-Sep-04 1:16 
Generalwhich events ocur Pin
karanba23-Sep-04 3:39
karanba23-Sep-04 3:39 
GeneralRe: which events ocur Pin
Heath Stewart23-Sep-04 7:52
protectorHeath Stewart23-Sep-04 7:52 
The Windows message that is generated is not sent to every application, so you need to implement a Winodws hook. Read Using Hooks from C#[^] for more detail.

Specifically, you need to install a keyboard hook using WH_KEYBOARD (0x2). Your callback would be defined like so:
delegate IntPtr KeyboardProc(IntPtr code, IntPtr wParam, IntPtr lParam);
The specific constants you want to check for are VK_LWIN (0x5b) and VK_RWIN (0x5c), as well as VK_D (0x44). Read KeyboardProc[^] for more information.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralUsing Web service as business logic layer Pin
shambho23-Sep-04 2:59
shambho23-Sep-04 2:59 
GeneralRe: Using Web service as business logic layer Pin
Salil Khedkar23-Sep-04 3:48
Salil Khedkar23-Sep-04 3:48 
GeneralRe: Using Web service as business logic layer Pin
shambho23-Sep-04 4:59
shambho23-Sep-04 4:59 
GeneralRe: Using Web service as business logic layer Pin
Heath Stewart23-Sep-04 7:39
protectorHeath Stewart23-Sep-04 7:39 
GeneralFind controls without knowing the name Pin
coddyuk23-Sep-04 2:49
coddyuk23-Sep-04 2:49 
GeneralRe: Find controls without knowing the name Pin
sreejith ss nair23-Sep-04 3:20
sreejith ss nair23-Sep-04 3:20 
GeneralRe: Find controls without knowing the name Pin
shambho23-Sep-04 3:40
shambho23-Sep-04 3:40 
GeneralRe: Find controls without knowing the name Pin
coddyuk23-Sep-04 4:30
coddyuk23-Sep-04 4:30 
Generalmouse position from Non client area Pin
Ajmoda23-Sep-04 1:12
Ajmoda23-Sep-04 1:12 
GeneralRe: mouse position from Non client area [EDITED] Pin
Stefan Troschuetz23-Sep-04 1:30
Stefan Troschuetz23-Sep-04 1:30 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 1:36
Ajmoda23-Sep-04 1:36 
GeneralRe: mouse position from Non client area Pin
Stefan Troschuetz23-Sep-04 1:44
Stefan Troschuetz23-Sep-04 1:44 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 1:51
Ajmoda23-Sep-04 1:51 
GeneralRe: mouse position from Non client area Pin
Stefan Troschuetz23-Sep-04 1:57
Stefan Troschuetz23-Sep-04 1:57 
GeneralRe: mouse position from Non client area Pin
Ajmoda23-Sep-04 2:03
Ajmoda23-Sep-04 2:03 
Questionwhat is this error Pin
ydderf223-Sep-04 0:18
ydderf223-Sep-04 0:18 
AnswerRe: what is this error Pin
exhaulted23-Sep-04 0:30
exhaulted23-Sep-04 0:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.