Automatic Word Highlighting

Here is the place to post images, videos and downloads of your current and upcoming applications that you are working on.
14 posts Page 2 of 2
Contributors
User avatar
MrAksel
C# Coder
C# Coder
Posts: 1758
Joined: Fri Mar 26, 2010 12:27 pm

Re: Automatic Word Highlighting
MrAksel
Yeah the typing goes extremely slow and fails much but I'm also developing a second that inherits the richtextbox control and just uses some API calls it's working pretty good with a few bugs.

My other method don't work properly as it is very slow so just don't try it but can explain:
It selects the word by the select function with start at the start index and length as the word length
Then it sets the color with the selectioncolor property
Then it deselects the text by using the select function again
.select(richtextbox1.textlenght - 1, 0)
LMAOSHMSFOAIDMT
Laughing my a** of so hard my sombrero fell off and I dropped my taco lmao;


Over 30 projects with source code!
Please give reputation to helpful members!

Image
Image
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Automatic Word Highlighting
Codex
You can start your own topic if you want to talk about yours, not in mine....
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
User avatar
Casirus
Codenstuff Elite
Codenstuff Elite
Posts: 258
Joined: Mon Jan 25, 2010 5:07 pm

Re: Automatic Word Highlighting
Casirus
i developed a DLL like this the one that scottie uses in his editor to color the code syntax :)
Image
DraculCorp - Progress lives forever
We strive for progress to improve the world we leave behind.
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Automatic Word Highlighting
Axel
MrAksel wrote:
I guess he does this:
Code: Select all
Richtextbox1.select(start, length)
Richtextbox1.selectioncolor = color choise
Richtextbox1.select(index, 0)

I have used that in my syntax highlight component
excuse me , your ? im 200% sure you searched google for "syntax highlighting vb" and clicked the 2th thing xd
http://vagex.com/?ref=25000
14 posts Page 2 of 2
Return to “Work in Progress”