Click here to Skip to main content
15,912,977 members
Home / Discussions / C#
   

C#

 
GeneralRe: InvalidCastException.. Pin
A.Machan Kachan27-Jan-10 20:35
A.Machan Kachan27-Jan-10 20:35 
GeneralRe: InvalidCastException.. Pin
SeMartens27-Jan-10 20:37
SeMartens27-Jan-10 20:37 
GeneralRe: InvalidCastException.. Pin
A.Machan Kachan27-Jan-10 21:13
A.Machan Kachan27-Jan-10 21:13 
GeneralRe: InvalidCastException.. Pin
SeMartens27-Jan-10 21:17
SeMartens27-Jan-10 21:17 
GeneralRe: InvalidCastException.. Pin
A.Machan Kachan27-Jan-10 21:22
A.Machan Kachan27-Jan-10 21:22 
Question"History" style text box Pin
User 137680027-Jan-10 19:39
User 137680027-Jan-10 19:39 
AnswerRe: "History" style text box Pin
OriginalGriff27-Jan-10 21:51
mveOriginalGriff27-Jan-10 21:51 
GeneralRe: "History" style text box Pin
User 137680027-Jan-10 23:14
User 137680027-Jan-10 23:14 
The ListBox idea was one I considered (adding colour to that is actually pretty trivial), but then I'd have the problem that I do want the user to be able to select text and copy/paste it elsewhere, which is not really feasible with a ListBox.

For reference, I want to allow something like 20000 lines of "history" in the control (each line will be limited to 80 characters because of what I'm connecting to, so that's only approx 2MB of text even including the ANSI colour codes)

With regards to providing my own paint, I've always had performance issues with manually pasting strings on custom controls. Are there any hints around about doing this without severe performance degradation? And also, if I'm not using a TextBox as a base, how I might handle the select/copy/paste that a TextBox provides? It just seems like it might be quite a lot of work for something that ends up only very marginally different from a TextBox.
(of course if anyone else reading has a good idea for my original question, I probably don't need this part answered!)
GeneralRe: "History" style text box Pin
OriginalGriff28-Jan-10 0:26
mveOriginalGriff28-Jan-10 0:26 
GeneralRe: "History" style text box Pin
User 137680028-Jan-10 1:13
User 137680028-Jan-10 1:13 
GeneralRe: "History" style text box Pin
OriginalGriff28-Jan-10 1:31
mveOriginalGriff28-Jan-10 1:31 
GeneralRe: "History" style text box Pin
User 137680028-Jan-10 19:35
User 137680028-Jan-10 19:35 
QuestionCreate Service Pin
Sunil G27-Jan-10 19:19
Sunil G27-Jan-10 19:19 
AnswerRe: Create Service Pin
Richard MacCutchan27-Jan-10 22:16
mveRichard MacCutchan27-Jan-10 22:16 
GeneralRe: Create Service Pin
Sunil G27-Jan-10 22:23
Sunil G27-Jan-10 22:23 
GeneralRe: Create Service Pin
Richard MacCutchan27-Jan-10 23:02
mveRichard MacCutchan27-Jan-10 23:02 
AnswerRe: Create Service Pin
Nick Coombs28-Jan-10 6:58
Nick Coombs28-Jan-10 6:58 
QuestionERROR Pin
jojoba201027-Jan-10 19:09
jojoba201027-Jan-10 19:09 
AnswerRe: ERROR Pin
Dan Mos27-Jan-10 19:13
Dan Mos27-Jan-10 19:13 
QuestionRe: ERROR Pin
jojoba201027-Jan-10 19:41
jojoba201027-Jan-10 19:41 
AnswerRe: ERROR Pin
Rod Kemp27-Jan-10 20:07
Rod Kemp27-Jan-10 20:07 
QuestionRe: ERROR Pin
jojoba201027-Jan-10 22:20
jojoba201027-Jan-10 22:20 
AnswerRe: ERROR Pin
Rod Kemp27-Jan-10 22:41
Rod Kemp27-Jan-10 22:41 
AnswerRe: ERROR Pin
Dave Kreskowiak28-Jan-10 5:22
mveDave Kreskowiak28-Jan-10 5:22 
QuestionInteresting Times... Pin
Illegal Operation27-Jan-10 18:24
Illegal Operation27-Jan-10 18:24 

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.