Hi,
Is it possible to replace lines of texts in richtextbox in C#?
like,
start_line = 3, end_line= 10
for(i=start_line; i< end_line; i++)
{
rtb.replaceText(i);
}
Thanks
| SitePoint Sponsor |
Hi,
Is it possible to replace lines of texts in richtextbox in C#?
like,
start_line = 3, end_line= 10
for(i=start_line; i< end_line; i++)
{
rtb.replaceText(i);
}
Thanks
rtb.Text = rtb.Text.Replace("what to replace", "what to replace with");
Bookmarks