Link to home
Start Free TrialLog in
Avatar of jackjohnson44
jackjohnson44

asked on

vb textbox bold font

Hi,
Is there a way to bold some words in a sentence that go into a text box?

I want to bold the first two words.


            txtMatrixDescription.Text = "BOLD TEXT, regular text"
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Hi jackjohnson44,

Not using a TextBox. You need to use a RichTextBox.

Cheers!
Avatar of jackjohnson44
jackjohnson44

ASKER

if my textbox was a rich text box, how would the above code be changed to bold the "BOLD TEXT"?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial