473,394 Members | 1,875 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

can I replace a pressed key by another in a control

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.CurrencyDe cimalSeparator

at anny time.

Greets

Jean Paul
Nov 16 '05 #1
1 2110
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:ue*************@TK2MSFTNGP14.phx.gbl...
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.CurrencyDe cimalSeparator

at anny time.

Greets

Jean Paul

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: jean-dot-paul-at-opelwilly-dot-com | last post by:
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...
1
by: JerryP | last post by:
Hi Group, is there any easy way to get the status of the CTRL Key in the Button Click event ? I'd like to implement a functionality compareable to Windows Explorer DELTE - it behaves a little...
1
by: Nagachandra Sekhar Grandhi | last post by:
I placed a combobox control on User control and this user control was placed on a form and I tried to catch the keys pressed on that combo box, but I am unable to do it. I set the property of...
2
by: Du | last post by:
How to tell if the Ctrl key is pressed without being inside a keypress/keyup/keydown event? I want distinguish between a "click" and a "ctrl+click" on a button. any suggestion? thanks
2
by: Vern | last post by:
I have a custom control which has it's own OnValidating event handler. I would like to skip the validations if the Cancel/Exit button is pressed. Also, if possible, would like to skip the...
4
by: Woody Splawn | last post by:
I would like to be able to know if the user has pressed a key in any text box on a winform or in other words, if he is editing a record. I would like to know this as soon as he presses any key. I...
19
by: darrel | last post by:
On my vb.net page, I have 4 sets of inputs + form buttons. example: Search: (GO) Zip: (GO) County: (GO) County: (GO) The problem is if I go to the page, type in a zip code, and hit...
1
by: infmpv00 | last post by:
Hi, I have a tabControl and when I click on a context menu and press ctrl key I would like the information appear in a new tab, like in iexplorer. If I don't press ctrl key the information would...
1
by: COHENMARVIN | last post by:
I have some code like this: Dim control As Control control = Page.LoadControl("../usercontrols/ AlertsForQA.ascx") content.Controls.Add(control) 'content' is the ID of a 'span' control. This is...
3
by: Jean | last post by:
Hello, I´m a new user to C# and I have a question. How to make my application emulate a key pressed? Not just the key press, but keep the key pressed? For example, let´s say that I want to emulate...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.