kiprimshot
asked on
Bolding selected text in a text box..
I have a paragraph table that has codes and text. I want to be able to allow the user to enter in the paragraph and bold the necessary text at the vb end. Can I use a regular text box and give them a bold button similar to word.
Can I do this and save it to sql server. The paragraphs are used in a word merge.
Thanks
Can I do this and save it to sql server. The paragraphs are used in a word merge.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
daky:
yeah...... I know how to bold all text
yeah...... I know how to bold all text
IN an RTF box you can set individual words to bold. I have done this but sometimes (I dont know why) it get a bit flaky.
Use SelStart to find the start of the work/phrase you want bold. Use SelLength to select that word or phrase.
You can then use the SelBold command to set that selection to bold.
Good Luck
Use SelStart to find the start of the work/phrase you want bold. Use SelLength to select that word or phrase.
You can then use the SelBold command to set that selection to bold.
Good Luck
ASKER
sorry for the wait I havent been off for a while
Private Sub Command1_Click()
Text1.FontBold = True
End Sub
It's pretty easy, isn't it? (and it works in regular textbox!)
Best regards, Daky