I need a function which will check for a string in a text. (May be label/textbox text).
The function should check if a particular text exist in it, then if found it should make it bold.
How this should be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assuming you mean ASP.NET then such code will work:
Then apply the string as Text of a label. You can’t make text bold inside textbox.
The above example will make the word fox bold.