Click here to Skip to main content
15,885,633 members

Comments by jaipe (Top 13 by date)

jaipe 18-Dec-12 3:23am View    
Hi, I am not getting the grip on it, please help, below is the code which I am using for highlighting normal words.

private void HighLightRTBLISTJOBS()
{
string tex = txtText.Text;
if (tex.Length > 0)
{
int jp = -1;
int searchStart = 0;
while ((jp = rtbListJobs.Find(tex, searchStart, RichTextBoxFinds.None)) > -1)
{
rtbListJobs.Select(jp, tex.Length);
rtbListJobs.SelectionBackColor = Color.YellowGreen;
searchStart = jp + tex.Length;
}
}
}

Kindly help
jaipe 13-Jul-12 2:10am View    
Sorry, updated it now :)
jaipe 11-Jan-12 1:46am View    
Not getting the exact idea from the link, please help
jaipe 24-Nov-11 1:51am View    
Thank you very much, worked well :)
jaipe 6-Oct-11 6:14am View    
Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

kindly advice