Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1438
  • Last Modified:

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"
0
jackjohnson44
Asked:
jackjohnson44
  • 2
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
Hi jackjohnson44,

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

Cheers!
0
 
jackjohnson44Author Commented:
if my textbox was a rich text box, how would the above code be changed to bold the "BOLD TEXT"?

Thanks
0
 
Éric MoreauSenior .Net ConsultantCommented:
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now