By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,162 Members | 996 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,162 IT Pros & Developers. It's quick & easy.

Make a particular piece of text BOLD in a textbox during runtime

P: n/a
Rex
Hi, I want to make a particular piece of text BOLD (during runtime) in
a textbox.

for example: consider a string "The next stage for plaque collection
will be at the end of January". I want to make the text "end of
january" as bold, while rest of the string be as it is. This needs to
be done in a report.

Cheers
Rakesh

Dec 4 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You have a few options. You can use a RichTextbox and import an RTF
file into the RihTextbox. The RTF file is where you do the formatting.
The other option is to load a browser object into the report - not sure
if you can do that in Acces. Anyway, in a browser control you can use
html tags to format your text on the fly. Anyway, this is how I do it
in .Net.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Dec 5 '06 #2

P: n/a
Access 2007 can do this.

If you are working with an earlier version, see:
http://www.lebans.com/mixbold-plain.htm
or
http://www.lebans.com/richtext.htm

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Rex" <ra*******@gmail.comwrote in message
news:11**********************@79g2000cws.googlegro ups.com...
Hi, I want to make a particular piece of text BOLD (during runtime) in
a textbox.

for example: consider a string "The next stage for plaque collection
will be at the end of January". I want to make the text "end of
january" as bold, while rest of the string be as it is. This needs to
be done in a report.

Cheers
Rakesh

Dec 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.