Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# For Project Word Text
I have search this in Google but not exactly solution of my problems.
Posted 20-Feb-12 19:05pm
Varun Sareen at 21-Feb-12 1:14am
Please paste some sample code of yours
krumia at 21-Feb-12 1:34am
Your question is vague.
Do you want to do something like this: Your text box has a text "samplesamplesample" and you just want to change it to "sample".
OriginalGriff at 21-Feb-12 2:53am
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, read your homework instructions, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

string SearchFor = "Hi";
string ReplaceWith = "Bye";
textbox1.Text = "Hi, this is your textbox string Hi";
textbox1.Text = textbox1.Text.Replace(SearchFor, ReplaceWith);
/* RESULTS: "Bye, this is your textbox string Bye" */

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 405
1 Sergey Alexandrovich Kryukov 170
2 CHill60 160
3 RyanDev 135
4 Richard MacCutchan 115

Advertise | Privacy | Mobile
Web01 | 2.8.140709.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid