views:

123

answers:

1

Hi.

I must replace keystroke when user typing in TextBox. When user type 123,456,789 text box must contain 123.456.789.

Please HELP.

+1  A: 

One "low" level solution:

You can play with GetKeyState() from WINAPI That should allow You to change the input.

Keyboard actions

Or try this:

WM_..for ','

Key codes

some code:

case WM_KEYDOWN: 
        switch (wParam) 
        { 
            case VK_OEM_COMMA: 

                //Your processing code
bua