VickyMalhotra
New member
- Joined
- Sep 23, 2017
- Messages
- 1
- Programming Experience
- Beginner
hi guys i want to program a backspace function for my Scientific Calculator Project i coded something like this
private void button48_Click(object sender, EventArgs e)
{
textBox_Result.Text = textBox_Result.Text.Remove(textBox_Result.Text.Length - 1);
if (isOperationPerformed == true)
{
textBox_Result.Text = textBox_Result.Text;
}
else if (textBox_Result.Text == "")
{
textBox_Result.Text = "0";
}
i want this code to work only when operation is not performed but if operation performed true then it should not work but it not seems to work
private void button48_Click(object sender, EventArgs e)
{
textBox_Result.Text = textBox_Result.Text.Remove(textBox_Result.Text.Length - 1);
if (isOperationPerformed == true)
{
textBox_Result.Text = textBox_Result.Text;
}
else if (textBox_Result.Text == "")
{
textBox_Result.Text = "0";
}
i want this code to work only when operation is not performed but if operation performed true then it should not work but it not seems to work