Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. text box control

text box control

Scheduled Pinned Locked Moved Visual Basic
questionhelplearning
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Esmo2000
    wrote on last edited by
    #1

    Hello everyone: I have a quick question about rich text box controls in visual basic. I basically want to change the colour of the text in one of these controls, but I can't see another way to do it then use the "Select" command. This basically highlights text and then you can make whichever changes you want. The problem is of course that this has all sorts of unpredictable behaviors which can't be foreseen, and of course, its outright sloppy. The problem is I see no other way to edit the internal data easily! What's the standard correct way to do this sort of thing? Regards, James

    Did I post well? Rate it! Did I post badly? Rate that too!

    S D 2 Replies Last reply
    0
    • E Esmo2000

      Hello everyone: I have a quick question about rich text box controls in visual basic. I basically want to change the colour of the text in one of these controls, but I can't see another way to do it then use the "Select" command. This basically highlights text and then you can make whichever changes you want. The problem is of course that this has all sorts of unpredictable behaviors which can't be foreseen, and of course, its outright sloppy. The problem is I see no other way to edit the internal data easily! What's the standard correct way to do this sort of thing? Regards, James

      Did I post well? Rate it! Did I post badly? Rate that too!

      S Offline
      S Offline
      Stigmurder
      wrote on last edited by
      #2

      Are you trying to change the color of all the text? or just a certain piece?

      1 Reply Last reply
      0
      • E Esmo2000

        Hello everyone: I have a quick question about rich text box controls in visual basic. I basically want to change the colour of the text in one of these controls, but I can't see another way to do it then use the "Select" command. This basically highlights text and then you can make whichever changes you want. The problem is of course that this has all sorts of unpredictable behaviors which can't be foreseen, and of course, its outright sloppy. The problem is I see no other way to edit the internal data easily! What's the standard correct way to do this sort of thing? Regards, James

        Did I post well? Rate it! Did I post badly? Rate that too!

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        What you have now is about the only method you've got. ...Unless you want to start parsing the RTF string and inserting the formatting codes yourself.

        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007

        E 1 Reply Last reply
        0
        • D Dave Kreskowiak

          What you have now is about the only method you've got. ...Unless you want to start parsing the RTF string and inserting the formatting codes yourself.

          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007

          E Offline
          E Offline
          Esmo2000
          wrote on last edited by
          #4

          Ah, that's too bad. Yeah, I only want to edit parts of it. Using the select method has such unpredicatable side effects, its a shame there is no provided control to get around that. Thanks guys, James

          Did I post well? Rate it! Did I post badly? Rate that too!

          D 1 Reply Last reply
          0
          • E Esmo2000

            Ah, that's too bad. Yeah, I only want to edit parts of it. Using the select method has such unpredicatable side effects, its a shame there is no provided control to get around that. Thanks guys, James

            Did I post well? Rate it! Did I post badly? Rate that too!

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            It's a simple implementation of a RichTextBox control. It's not meant to be something like Word. If you wanted more complex functionality, it would require a more complex implementation, like a 3rd party control or something you write yourself.

            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups