Hesap Makinesinde Butona Back Space tuş görevi — Csharp
Hesap Makinesinde Butona Back Space tuş görevi — Csharp

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;//www.gorselprogramlama.com
using System.Text;
using System.Windows.Forms;
namespace backspace_textbox
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int uzunluk = textBox1.Text.Length;//www.gorselprogramlama.com
if (uzunluk > 0)
{
textBox1.Text =textBox1.Text.Substring(0, uzunluk - 1);
}
textBox1.Focus();
textBox1.SelectionStart = textBox1.Text.Length;
textBox1.SelectionLength = 0;
}//www.gorselprogramlama.com
}
}




