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

code for backspace in calculator

hi friends now only i start to learn vb.net n now i completed calculator program in vb.net but i dont know the concept for how to act the backspace button event..tel me some logic for tat.........
Jul 27 '07 #1
2 15821
radcaesar
759 Expert 512MB
Make that into an ARRAY, When BackSpace is pressed by the user Delete a item. Right ?
Jul 27 '07 #2
hi friends now only i start to learn vb.net n now i completed calculator program in vb.net but i dont know the concept for how to act the backspace button event..tel me some logic for tat.........
Listen Senthil... The Basic Idea about Backspace is Deleting an item from the textbox value... To do that we need... So algorthims...
Follow this steps...
In C#.Net

Private void backSpace_Click(object sender, EventArgs e)
{
String str=textBox.Text;
int len;
len=str.Length;
textBox.Text="";
for(int i=0; i<len-1; i++)
{
textBox.Text=textBox.Text+Convert.ToString(str[i]);
}
}

This is C#.Net Back Space code... If you need in VB.Net its pretty simple...
Just Under stand the logic... and implement in VB.Net...
Sep 11 '07 #3

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

Similar topics

5
by: Steven Smith | last post by:
I was flicking through the windows accesories programs for some inspiration for todays vb challenge when I came accross the calculator program & thought that looks easy I could do that. However...
3
by: PieMan2004 | last post by:
Hi, ive been looking for a solid java community to help me when im tearing out my hair :) Basically ive constructed a GUI that has to represent the same look and functions of the typical windows...
19
by: TexasNewbie | last post by:
This was originally just a calculator without a decimal point. After I added the decimal, it now tells me invalid second number. //GUI Calculator Program import javax.swing.*; import...
2
by: akzim2200 | last post by:
i would like some help in filling the backspace command for my calculator. help really appreciated
5
Deathwing
by: Deathwing | last post by:
Hi everyone one I'm playing around with trying to make an expense calculator. I would like it so that the user can keep enter expenses until they have no more expenses. Then I would like for the...
3
by: misspn | last post by:
I am looking for HTML code that accepts two numbers and do some calculations ie add, subtract, multipy and divide. how do i go about it
3
by: karpakavallli | last post by:
i need the code and the explanation to the code calculator
1
by: Keli Dee Correia | last post by:
i need help for write the code backspace
1
by: chean | last post by:
Write a program that creates a simple calculator . The user enters two numbers in the text fields, Number 1 and Number 2. There are 4 buttons, labeled with “Add”, “Substract”, “Multiply” and...
0
Curtis Rutland
by: Curtis Rutland | last post by:
Have any of you ever used a Reverse Polish Notation calculator? I did in high school. It was easily the best calculator ever (the HP=32SII). RPN is great, because you don't have to use parenthesis....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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,...

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.