Click here to Skip to main content
15,894,460 members
Home / Discussions / C#
   

C#

 
AnswerRe: access to Win32Native class? Pin
Nick Parker22-Mar-04 17:17
protectorNick Parker22-Mar-04 17:17 
GeneralDecryption Problem Pin
terry_cyf22-Mar-04 15:15
terry_cyf22-Mar-04 15:15 
GeneralRe: Decryption Problem Pin
Mazdak22-Mar-04 23:53
Mazdak22-Mar-04 23:53 
GeneralRe: Decryption Problem Pin
terry_cyf23-Mar-04 20:42
terry_cyf23-Mar-04 20:42 
Generalbarcode Pin
tonaxxl22-Mar-04 13:56
tonaxxl22-Mar-04 13:56 
GeneralRe: barcode Pin
John Kuhn22-Mar-04 14:04
John Kuhn22-Mar-04 14:04 
GeneralMultiple message filters Pin
bisquic22-Mar-04 11:44
bisquic22-Mar-04 11:44 
GeneralRe: Multiple message filters Pin
Nick Parker22-Mar-04 16:02
protectorNick Parker22-Mar-04 16:02 
I don't really think that you would need two message filters to handle this process, one should do the trick. The key that is press gets packed into the WParam of the Message so once you evaluate what was hit you can simply dispatch control to the appropriate method.

private const int WM_KEYDOWN = 0x0100;
public bool PreFilterMessage(ref Message m)
{
    if(m.Msg == WM_KEYDOWN)
    {
        char c = (char)m.WParam;
        if(c == 'A')
            MessageBox.Show("A was hit");
    }
    return false;
}


- Nick Parker
My Blog | My Articles

GeneralRe: Multiple message filters Pin
bisquic22-Mar-04 16:16
bisquic22-Mar-04 16:16 
GeneralRe: Multiple message filters Pin
Heath Stewart23-Mar-04 4:21
protectorHeath Stewart23-Mar-04 4:21 
GeneralRe: Multiple message filters Pin
bisquic28-Mar-04 19:07
bisquic28-Mar-04 19:07 
GeneralRe: Multiple message filters Pin
Heath Stewart29-Mar-04 3:06
protectorHeath Stewart29-Mar-04 3:06 
GeneralRe: Multiple message filters Pin
bisquic29-Mar-04 3:14
bisquic29-Mar-04 3:14 
GeneralDatagrid to text (values only) Pin
jazzle22-Mar-04 10:42
jazzle22-Mar-04 10:42 
GeneralRe: Datagrid to text (values only) Pin
Nick Parker22-Mar-04 18:02
protectorNick Parker22-Mar-04 18:02 
GeneralRe: Datagrid to text (values only) Pin
jazzle22-Mar-04 21:37
jazzle22-Mar-04 21:37 
GeneralRe: Datagrid to text (values only) Pin
Heath Stewart23-Mar-04 4:24
protectorHeath Stewart23-Mar-04 4:24 
GeneralConverting strings to DateTime structs Pin
profoundwhispers22-Mar-04 10:38
profoundwhispers22-Mar-04 10:38 
GeneralRe: Converting strings to DateTime structs Pin
Edbert P22-Mar-04 12:19
Edbert P22-Mar-04 12:19 
GeneralRe: Converting strings to DateTime structs Pin
profoundwhispers22-Mar-04 12:39
profoundwhispers22-Mar-04 12:39 
GeneralRe: Converting strings to DateTime structs Pin
Edbert P22-Mar-04 13:18
Edbert P22-Mar-04 13:18 
GeneralRe: Converting strings to DateTime structs Pin
Bryan White31-Mar-04 9:59
Bryan White31-Mar-04 9:59 
GeneralEvents in Datagrid Pin
Anonymous22-Mar-04 10:30
Anonymous22-Mar-04 10:30 
GeneralRe: Events in Datagrid Pin
Ruchi Gupta22-Mar-04 11:55
Ruchi Gupta22-Mar-04 11:55 
GeneralRe: Events in Datagrid Pin
Anonymous23-Mar-04 11:15
Anonymous23-Mar-04 11:15 

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.