In a RichTextEdit object you use the SetTextStyle function to set the currently selected text to bold, underlined, italics, etc. The trick is to select the text you want to change. The SelectText function in a RichTextEdit object requires a starting line, starting character, ending line, and ending character. If you have not already done so, you will need to write a routine to determine at what line and character the text you want to change currently starts and ends so you can select it before calling the SetTextStyle function.
Using a rich text edit control just to display part of a line of static text as bold seems a bit excessive. I don't know of any way to accomplish this with a single static text control since static text controls are pretty "dumb".
One option would be to use multiple static text controls with the Bold property of the appropriate control set to True.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.