windows form textbox text formatting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • basicballistic
    New Member
    • Jun 2010
    • 2

    windows form textbox text formatting

    Is there a way to format the text in a multiline textbox in a way that would give the same formatting capabilites as an html webpage?

    For example I would like to show the following text in a textbox in the exact same manner as it appears here:

    Hello, my name is bob.

    And plus the ability to change color and font of individual sections of text.

    Is this possible? If so, how do I go about implementing the textbox? If not, what would be a better approach in order to display such text in a windows form?
  • GaryTexmo
    Recognized Expert Top Contributor
    • Jul 2009
    • 1501

    #2
    Have a look at a RichTextBox object if you want user input.

    If you just want display, a web browser control is actually available and will display HTML just fine.

    Comment

    • basicballistic
      New Member
      • Jun 2010
      • 2

      #3
      Originally posted by GaryTexmo
      Have a look at a RichTextBox object if you want user input.

      If you just want display, a web browser control is actually available and will display HTML just fine.
      I see I did not specify my question entirely. I would like to be able to allow the user to type text in some field as well format the text dynamically behind the scenes.

      For example, if the user types "bob" the program could automatically make the word "bob" bold, blue, italic, etc. A web browser control can display this text, but the user cannot type in characters to a web browser.

      Any ideas?

      Comment

      • GaryTexmo
        Recognized Expert Top Contributor
        • Jul 2009
        • 1501

        #4
        Right, so then see the first part of my post above.

        Comment

        Working...