473,474 Members | 1,836 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Jul 21 '05 #1
1 1333
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

Jul 21 '05 #2

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

Similar topics

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
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...
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
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
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...
1
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.