Its a user control.
Its a richtextbox, with modifiable syntax highlighting and line numbers :D
Its easy to use, once you import it, just drag it onto your form :D to modify the syntax hiighlighting is simple, as an example here's what I did for the example app (C#) highlighting:
string[] kw = { "int", "bool", "string", "object", "false", "true", "byte", "char", "return", "public", "void", "static", "private", "class", "namespace", "using", "partial", "override","for","if","while","do","else","break","case"};
codeBox1.AKeyWords1 = kw;
string[] kw2 = { "!@#$%^&*(" };
codeBox1.AKeyWords2 = kw2;
string[] kw3 = { "!@#$%^&*(" };
codeBox1.AKeyWords3 = kw3;
codeBox1.CommentBegin = "//";
Keywords1 is blue text
Keywords2 is Red text and Bold
Keywords3 is Purple text and Italic
I put "!@#$%^&*(" for keywords1 & 2 because I didn't need keywords 1 & 2, if you leave it blank it will use default keywords, so if you dont need them, just put random crap in ;)
To access the text use:
codeBoxName.TheTextjust Text won't cut it, sorry :(
Here's a screeny of how it looks:

Here's the download for the user control, I did a template export thing:
Code_Box_UC.zip
Here's a pre compiled example, all it is is the contorl on a form with a full dock, for those of you who dont feel like making your own test ;), syntax highlighting is C#:
Code_Box Example.exe
Use it if you think it'll help you, I'd appreciate a PM telling about its use if you though, and if its comercial I wouldn't say no to a free copy :D (although I doutb anybody would use this in anything comercial, although u never know! )
~Charless


Sign In
Create Account


Back to top









