text box control
-
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!
-
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!
Are you trying to change the color of all the text? or just a certain piece?
-
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!
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 -
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, 2007Ah, 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!
-
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!
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