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.
How to over write a text???
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Nov 11, 2010, 8:38 PM EST
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.
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Nov 11, 2010, 9:02 PM EST