CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2000
    Posts
    19

    Make the selected text bold

    Hi,

    Now don't get me wrong, I'm no beginner but I just have not done this for a year so I have forgot. I want to select some text and make only the selected text bold when the bold button is pressed. I tried this:

    ------------------------------------
    txtComment.Seltext = txtComment.Font.Bold
    ------------------------------------

    What wrong here?

    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Make the selected text bold

    in a text box you cannot make parts of the Text bold. Use a RichtText Control instead.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured