private void button1_Click(object sender, EventArgs e) { richTextBox1.Text = "\b"; }
richTextBox1.Clear();
if (richTextBox1.TextLength != 0) { int x = richTextBox1.TextLength; x += -1; }
<br /> richTextBox1.Text = richTextBox1.Text.Remove(richTextBox1.Text.Length - 1, 1);<br />
private void button1_Click(object sender, EventArgs e) { int i = richTextBox1.Text.Length; richTextBox1.Text = richTextBox1.Text.Substring(0, i - 1); }
richTextBox1.Text = richTextBox1.Text.Substring( 0, richTextBox1.Text.Length - 1 );
if (focusedTextbox.SelectionStart>0) { int index = focusedTextbox.SelectionStart; focusedTextbox.Text = focusedTextbox.Text.Remove(focusedTextbox.SelectionStart - 1, 1); focusedTextbox.Select(index - 1, 1); focusedTextbox.Focus(); }
if (richTextBox1.TextLength != 0) { richTextBox1.Text = richTextBox1.Text.Remove(richTextBox1.Text.Length - 1, 1); } else { return; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)