PC Review


Reply
Thread Tools Rate Thread

can I replace a pressed key by another in a control

 
 
jean-dot-paul-at-opelwilly-dot-com
Guest
Posts: n/a
 
      3rd Mar 2005
Hello,

Is there a known way to replace a pressed key by an other.
KeyPressEventArgs.KeyChar is read-only so is there a work arround.

I want to change the decimal point of the numeric keypad into

CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator

at anny time.



Greets

Jean Paul


 
Reply With Quote
 
 
 
 
James
Guest
Posts: n/a
 
      3rd Mar 2005
Take a look at the OnKeyDown event of Control. There is cod ethat shows how
to trap said keys. Now you can always set your own text string to whatever
you want so if I were to type "ABCD9" and you want to change the '9' to an
'E' you could just set your string to "ABCDE" with a simple string.Replace

JIM


"jean-dot-paul-at-opelwilly-dot-com" <i@a> wrote in message
news:ueaW5R$(E-Mail Removed)...
> Hello,
>
> Is there a known way to replace a pressed key by an other.
> KeyPressEventArgs.KeyChar is read-only so is there a work arround.
>
> I want to change the decimal point of the numeric keypad into
>
> CultureInfo.CurrentCulture.NumberFormat.CurrencyDecimalSeparator
>
> at anny time.
>
>
>
> Greets
>
> Jean Paul
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control Key Pressed Rod Microsoft Access Forms 3 5th Oct 2006 03:41 PM
can I replace a pressed key by another in a control jean-dot-paul-at-opelwilly-dot-com Microsoft C# .NET 1 3rd Mar 2005 03:23 PM
can I replace a pressed key by another in a control jean-dot-paul-at-opelwilly-dot-com Microsoft Dot NET Framework Forms 1 3rd Mar 2005 03:23 PM
can I replace a pressed key by another in a control jean-dot-paul-at-opelwilly-dot-com Microsoft Dot NET Framework 1 3rd Mar 2005 03:23 PM
The same as if control key is pressed... ?scar Martins Microsoft VB .NET 0 17th Aug 2004 08:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:52 AM.