W
wildman
RE: Replacing Text without changing case??
This code works great, but case has to be exact.
Research.Text = Research.Text.Replace(textboxSearch.Text, "<b>" +
textboxSearch.Text + "</b>")
I found some c# code, but I can't make it work in vb.net:
Regex.Replace(Research.Text, textboxSearch.Text, New
MatchEvaluator(HiLite), RegexOptions.IgnoreCase)
....
Public Shared Function HiLite(ByVal match As Match) As String
Return "<b>" + match.Value + "</b>*"
End Function
Its complaining about Hilite in the first line.
This code works great, but case has to be exact.
Research.Text = Research.Text.Replace(textboxSearch.Text, "<b>" +
textboxSearch.Text + "</b>")
I found some c# code, but I can't make it work in vb.net:
Regex.Replace(Research.Text, textboxSearch.Text, New
MatchEvaluator(HiLite), RegexOptions.IgnoreCase)
....
Public Shared Function HiLite(ByVal match As Match) As String
Return "<b>" + match.Value + "</b>*"
End Function
Its complaining about Hilite in the first line.