Post: Vba richtextbox
05-18-2013, 01:03 AM #1
Default Avatar
itsmeu
Guest
(adsbygoogle = window.adsbygoogle || []).push({}); Hi guys,
I heard that richtextbox controls in vba can make different sections of text formatted. If, for example, want the text in the textbox to be like "Hello world!" with the hello part being green and the world part being red, what would I do?
(adsbygoogle = window.adsbygoogle || []).push({});
05-18-2013, 01:16 AM #2
You you can't syntax highlight in a richtextbox only way is to use Regex
05-18-2013, 02:25 AM #3
Specter
Pro Memer
If your talking about syntax highlighting and such, visual basic isn't the way to go. C# has an extension for syntax highlighting, I believe its called ICSharp.Texteditor.dll or something along those lines.
05-18-2013, 06:53 AM #4
Pichu
RIP PICHU.
Originally posted by NGU
If your talking about syntax highlighting and such, visual basic isn't the way to go. C# has an extension for syntax highlighting, I believe its called ICSharp.Texteditor.dll or something along those lines.


It's something that someone else has written for you to work off of. You can make your own but it would take a some time to write from scratch.

What you said though is the way to go.

Also, VB.NET and C# classes and such can be used, you just have to tell the your program you are using VB.NET.
05-18-2013, 03:13 PM #5
Master Ro
I make food
Originally posted by itsmeu View Post
Hi guys,
I heard that richtextbox controls in vba can make different sections of text formatted. If, for example, want the text in the textbox to be like "Hello world!" with the hello part being green and the world part being red, what would I do?



~Moved to Computer Coding and Programming Questions.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo