Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27513

VS 2012 TextBox to display code

$
0
0
I am displaying code in a textbox at runtime. This code is obtained from a .vb class file. Is it possible to change the colors of the text so that they are the same colors as the Visual Basic IDE. By that I mean:

Dim statements are blue
Comments are green
Standard text is black
etc

I gather that the RichTextBox can change colors. Does anyone have, or know of, some code to display text as the Visual Basic IDE does? Or is there a control that can do this without additional code?

Viewing all articles
Browse latest Browse all 27513

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>