473,395 Members | 1,458 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,395 software developers and data experts.

how to backspace?

Hi, im doing a currency convertor program. I've done up most of the parts, but im not sure how to backspace. For example of user entered wrong number, when the user click on backspace, it'll delete the last number he entered.

thanks
Nov 17 '08 #1
5 1341
joedeene
583 512MB
Isn't that what backspace is suppose to do, delete the last entered character? What do you want the backspace to do?

joedeene
Nov 17 '08 #2
sorry to cause the misunderstanding. what i meant was if user click on backspace, how should i put the code to let the backspace button delete the last number the user entered.
Nov 17 '08 #3
joedeene
583 512MB
What have you got so far? Like, what is your program doing. I suppose you're using a text box. Are you converting the user's input from one currency to another currency in another text box? Or are you using the same text box to convert the text.

I still don't quite understand why the backspace isn't working. If you're converting the input into another different text box and leaving the input alone, and that text box, which contains the input, has focus, it should definitely delete the last entered character, unless you are coding with a textbox_textchanged event. Also, what language are you coding in?

joedeene
Nov 17 '08 #4
balabaster
797 Expert 512MB
So you're looking for the .NET equivalent of SendKeys(backspace)?

http://msdn.microsoft.com/en-us/library/system.windows.forms.sendkeys.aspx
Nov 17 '08 #5
lotus18
866 512MB
Hi

Why don't you create a validation that will prevent the user to enter wrong number?


Rey Sean
Nov 18 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Dennis Craven | last post by:
Hello, Does anyone know how one could insert a backspace into a widget such as a TextView/Buffer in Pygtk? Whenever I try something like insert(iter, '\b') I get jibberish inserted into the...
1
by: haxmya | last post by:
Ok, made an explorer toolbar (band Object) with a textbox on it. Everything works great....except that the backspace button doesn't actually backspace when you're in the textbox. Shift-backspace...
6
by: Robert Nurse | last post by:
Hi, Is it at all possible to capture and suppress the backspace key when focus is not on a form edit control? Basically, while the page is loading I don't want the user pressing the backspace...
1
by: haxmya | last post by:
Ok, made an explorer toolbar (band Object) with a textbox on it. Everything works great....except that the backspace button doesn't actually backspace when you're in the textbox. Shift-backspace...
1
by: Blue | last post by:
This JS limits the input characters into the form. How do I modify it so that it also allows CARRIAGE RETURN and BACKSPACE (for making text correction)? Due to the template engine I am using, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.