We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Currency Text Box and accepting enter key

Thread ID:

Created:

Updated:

Platform:

Replies:

21198 Nov 4,2004 06:15 AM Nov 5,2004 01:43 PM Windows Forms 1
loading
Tags: Tools
Philip Bishop
Asked On November 4, 2004 06:15 AM

Is there a setting or some way I can make a currency text box accept an enter key? I have some currency text boxes with lostfocus code so when they leave it takes one and multiplies it by another and puts that in another box. I wanted to know if there was a way so that when u enter a value in the currencytextbox that when u hit ur ENTER key that it will do the same thing as when lostfocus happens. That way they can change the value and not have to leave the field to see the new change??

Administrator [Syncfusion]
Replied On November 5, 2004 01:43 PM

Hi Philip, You can do that by handling the KeyDown event Private Sub currencyTextBox1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles currencyTextBox1.KeyDown If e.KeyCode = Keys.Enter Then Me.UpdateTextBox() End If End Sub Here is a sample F21198CurrencyTextBoxEnterKey_7019.zip Please let me know if you have any questions. Thanks. Best regards, Stephen. >Is there a setting or some way I can make a currency text box accept an enter key? I have some currency text boxes with lostfocus code so when they leave it takes one and multiplies it by another and puts that in another box. I wanted to know if there was a way so that when u enter a value in the currencytextbox that when u hit ur ENTER key that it will do the same thing as when lostfocus happens. That way they can change the value and not have to leave the field to see the new change??

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;