|
-
Nov 26th, 2002, 01:52 AM
#1
rich textbox flickers
I'm trying to highlight certain keywords AS THE USER TYPES text in a rich textbox. The only way I could think of was to search through the whole textbox everytime the CHANGED event is fired, and then colorize the keywords (which turns out to be really slow).
The problem is that it flickers alot, because I'm selecting and unselecting certain keywords in order to colorize them. I tried the suspendlayout method, but sounds like it doesnt do anything whatsoever
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Nov 27th, 2002, 06:45 PM
#2
aah I used the LockWindow API, and it doesnt flicker anymore. But it's extreemly slow. If you start typing a little fast, it wont update the textbox as you type what should I do
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Nov 27th, 2002, 06:48 PM
#3
Maybe you could thread the highlight code so it doesn't hang the rest of the app.
-
Nov 27th, 2002, 08:25 PM
#4
Another way is to only colorize on enters and spaces because thats really when you want to check words to be colored. Add that to the threading method and you should be ok.
-
Nov 27th, 2002, 08:38 PM
#5
-
Nov 27th, 2002, 08:42 PM
#6
Originally posted by Negative0
Another way is to only colorize on enters and spaces because thats really when you want to check words to be colored. Add that to the threading method and you should be ok.
aah works mucho better thanks
one problem though: how can I find out if the use if pasting something?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Dec 6th, 2002, 01:49 AM
#7
umm so is there a way to find out if the user is pasting something ?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Dec 9th, 2002, 04:59 PM
#8
Maybe in the TextChanged event you could keep a static variable of the last Text.Length then if it increases by more than 1 they probably pasted something in instead of typed it in.
-
Dec 9th, 2002, 05:02 PM
#9
yay gay
well i didnt read the entire post but sometime ago i saw in assembly page something about this..the guy said that his first attemp was just like u to use the richtextbox and some api's but it got really really slow...so the thing he done was with a regular textbox and some api's..
\m/  \m/
-
Dec 9th, 2002, 10:11 PM
#10
I guess I should forget it
thanks for helping though
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|