Sir/Madam,
how to insert a char in text box ..
Eg:
If i have a text like "mam" here i have to insert a new char instead of m..here how make selection for single char and how to over write a char which has been selected.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jiteendra SampathiraoPosted Nov 12, 2010, 2:02 AM
Jiteendra SampathiraoPosted Nov 12, 2010, 1:38 AM
Replace() method is perfectly alright to your problem.
String somestring= txtsome.text;
if you want to replace 'b' in the place of 'm'.
write below line of code:
string s= somestring.Replace("m","b");
---------------------------------------------------------------------------------------------------------------------------------------------
If this post helped you, then tick the "Do you like this Answer" checkbox which is placed at above this post.