Click here to Skip to main content
15,879,535 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom Control "Update Cycles" Pin
Luc Pattyn28-Jun-09 0:32
sitebuilderLuc Pattyn28-Jun-09 0:32 
QuestionEstablishing an Internet Connection via coding Pin
ariyanna27-Jun-09 10:34
ariyanna27-Jun-09 10:34 
AnswerRe: Establishing an Internet Connection via coding Pin
Alan N27-Jun-09 10:48
Alan N27-Jun-09 10:48 
GeneralRe: Establishing an Internet Connection via coding Pin
ariyanna27-Jun-09 11:01
ariyanna27-Jun-09 11:01 
QuestionLarge text in RechTextBox Pin
Yoav Ben Zvi27-Jun-09 7:38
Yoav Ben Zvi27-Jun-09 7:38 
AnswerRe: Large text in RechTextBox Pin
Not Active27-Jun-09 7:51
mentorNot Active27-Jun-09 7:51 
AnswerRe: Large text in RechTextBox Pin
Eddy Vluggen27-Jun-09 8:48
professionalEddy Vluggen27-Jun-09 8:48 
AnswerRe: Large text in RechTextBox Pin
Luc Pattyn27-Jun-09 9:05
sitebuilderLuc Pattyn27-Jun-09 9:05 
Hi,

IMO TextBox and RichTextBox are not the right choice for displaying thousands of lines of text. The reason is they need all text concatenated, and any change you apply needs to create a new huge string with new mark-up commands.

When text is line-oriented, hence does not need word wrapping, I tend to use a ListBox. That is a Control that holds a collection of strings, each representing one line of text. It does not mind holding millions of lines. By default a ListBox shows text in one font, one size, one style, one color; however it is rather easy to use the DrawMode.OwnerDrawn, so one can color each line individually (or do anything more fancy yourself) in the DrawItem event. Here is an example[^].

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

AnswerRe: Large text in RechTextBox Pin
DaveyM6927-Jun-09 9:06
professionalDaveyM6927-Jun-09 9:06 
AnswerRe: Large text in RechTextBox Pin
Uwe Keim27-Jun-09 10:21
sitebuilderUwe Keim27-Jun-09 10:21 
AnswerRe: Large text in RechTextBox Pin
Yoav Ben Zvi28-Jun-09 8:41
Yoav Ben Zvi28-Jun-09 8:41 
QuestionNeed Split Method Pin
M Riaz Bashir27-Jun-09 6:35
M Riaz Bashir27-Jun-09 6:35 
AnswerRe: Need Split Method Pin
Ravi Bhavnani27-Jun-09 6:42
professionalRavi Bhavnani27-Jun-09 6:42 
AnswerRe: Need Split Method Pin
harold aptroot27-Jun-09 6:45
harold aptroot27-Jun-09 6:45 
AnswerRe: Need Split Method Pin
padmanabhan N27-Jun-09 14:48
padmanabhan N27-Jun-09 14:48 
GeneralRe: Need Split Method Pin
Arindam Sinha27-Jun-09 22:10
Arindam Sinha27-Jun-09 22:10 
GeneralRe: Need Split Method Pin
padmanabhan N28-Jun-09 19:54
padmanabhan N28-Jun-09 19:54 
GeneralRe: Need Split Method Pin
Arindam Sinha28-Jun-09 21:04
Arindam Sinha28-Jun-09 21:04 
GeneralRe: Need Split Method Pin
M Riaz Bashir29-Jun-09 23:15
M Riaz Bashir29-Jun-09 23:15 
GeneralRe: Need Split Method Pin
M Riaz Bashir29-Jun-09 23:14
M Riaz Bashir29-Jun-09 23:14 
QuestionHow to get path the path of folder Pin
xinmoigocua27-Jun-09 6:15
xinmoigocua27-Jun-09 6:15 
AnswerRe: How to get path the path of folder Pin
Not Active27-Jun-09 6:18
mentorNot Active27-Jun-09 6:18 
AnswerRe: How to get path the path of folder Pin
Luc Pattyn27-Jun-09 6:39
sitebuilderLuc Pattyn27-Jun-09 6:39 
QuestionHow to bring up connection manager. Pin
Bardy8527-Jun-09 5:39
Bardy8527-Jun-09 5:39 
AnswerRe: How to bring up connection manager. Pin
Arindam Sinha27-Jun-09 7:34
Arindam Sinha27-Jun-09 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.