473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

RidhEdit control SelectionColor method?

Hi all,

We are into the development of an application in C#. In one of the module we
are using RichEdit control as text editor. This text editor is resposible
for highlighting certain keywords. After parsing the text we are using the
following methods for setting the color of the text.

RichText.Select(int startIndex, int length) &
RichText.SelectionColor = Color.Red

This is working fine. But while loading a file of 10000 lines, this color
setting is taking almost 15mints, which is not at all desiarable. Is there
any better way to do this. The file format is ASCII and we don't want to use
rtf format.

We are using .Net 1.1.

We have found that for selecting text, SendCommand API with command ID
EM_SETSEL is much faster.

But still we are missing a proper solution for changing the font color of
selected text. Currently we are

using the method "SelectionColor" which is very slow. Could you give an
alternative solution for this issue.

Thanx in advance.
Nov 15 '05 #1
0 896

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: MLH | last post by:
I have created two forms: frmBrowseNegsMainform and frmBrowseNegsSubform. I put a subform control on the first of these. The SourceObject property for the subform control is, of course,...
1
by: buht | last post by:
Hello. Ive got a form with one richtextbox object called outputBox. When I click a button on the form that calls some other things to happen one of those things is setting the...
2
by: Mats-Lennart Hansson | last post by:
Hi, I want to dynamically add links into a richtextbox control. However, I actually don't want to go to a web page, I just want to catch the linkclick event and do something else. This works...
3
by: Marty McDonald | last post by:
I have <asp:Table... </asp:Table> on my webform. In codebehind, I populate a DataTable whose data should appear in the asp:Table. I created my own code to populate the asp:Table with the...
0
by: y2k692hu | last post by:
Hello I am trying to run this and I keep getting a "SystemNullReferenceException: Object reference not set to instance of an object" error. I have three menu items bold, italic and underline. When i...
2
by: Reinier | last post by:
Hello Some years ago I wrote an application (a sequencer) in VB5 and then in VB6 which records and plays MIDI signals from and to an electronic organ. The MIDI information is displayed in a RichText...
5
by: Supra | last post by:
i had usercontrol name doColor, then i added function procedure called doColor. then i added module and called from method doColor into module. the problem is i had to traced error:... An...
7
by: ChrisUttenreither | last post by:
Hello folks. I'm writing a Roguelike game in C#. Fun stuff. The game includes a map that is made entirely of colored ASCII art in a monospace font. I would like to make this map a control in...
0
by: shivaranjaniadimulam21 | last post by:
Hello, I need to implement an email editor control in my application. The control should allow me to type in text in any format,font etc. This i have managed using the richtextbox control...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.