Textbox backspace & delete

  • Thread starter Thread starter MikeY
  • Start date Start date
M

MikeY

Hi everyone,

Can anyone supply me with a C# windows sample/source code for backspacing
and deleting while working with textbox's. Errr darn O/S crash lost
everything.

Thanks all in advance

MikeY
 
I found this code, for those that are interested.

string mystring = this.txtBoxOutput.Text;

if(this.txtBoxOutput.Text.Length >0)

{

mystring =
this.txtBoxOutput.Text.Remove(this.txtBoxOutput.Text.Length -1,1);

this.txtBoxOutput.Text = mystring;

}

If anyone has better code please post a copy here so I can view it. txs
 
Back
Top