string - Textbox, delete button [c#] -
to add new letter textbox use
textbox.text = textbox.text + " ";
adds space etc., simple
but didnt figured out how can delete last line
for examp.
text of textbox abcdefg
and when user clicks delete, text "abcdef" "adcde" etc.
how can ?
i tried search web failed because dont know how search such thing ^^
string text = textbox.text; if(!string.isnullorempty(text)) textbox.text = text.substring(0,text.length-1);
Comments
Post a Comment