Change to bold

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamesd0142
    Contributor
    • Sep 2007
    • 471

    Change to bold

    Hi,
    im using a rich text box called "main", a button called "bold".

    when my program is running i want to be able to type in the rich text box, then when i highlight some text and press the bold button it changes the selected text to bold
    how is this done?

    im using vb express 2005

    found it:


    Dim bfont As New Font(Main.Font, FontStyle.Bold)
    Main.SelectionF ont = bfont
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    If it hasn't changed too much since VB6, you'll just set the .SelBold property.

    Comment

    Working...