Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi we are dispalying word file in label.
now we want to highlight the search string in label.text highlight is done.
But we want to highlight the search text with case insensitive i.e if we give string in lower or upper or both lowercase and uppercase.
Posted

How are you doing the search? The string search functions (IndexOf [^]and LastIndexOf) have an override with takes a StringComparison [^]Enumeration which includes case insensitive options.
 
Share this answer
 
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900