Click here to Skip to main content
15,920,896 members
Home / Discussions / C#
   

C#

 
GeneralRe: Development limitations of Express Edition? Pin
Vikram A Punathambekar6-Jul-07 22:12
Vikram A Punathambekar6-Jul-07 22:12 
GeneralRe: Development limitations of Express Edition? Pin
urbane.tiger8-Jul-07 16:14
urbane.tiger8-Jul-07 16:14 
AnswerRe: Development limitations of Express Edition? Pin
Vasudevan Deepak Kumar4-Jul-07 20:04
Vasudevan Deepak Kumar4-Jul-07 20:04 
QuestionEvent handling over a tcp remoting connection Pin
1242564-Jul-07 14:35
1242564-Jul-07 14:35 
QuestionEmulating ANSI in a TextBox Pin
weis234-Jul-07 14:18
weis234-Jul-07 14:18 
AnswerRe: Emulating ANSI in a TextBox Pin
Luc Pattyn4-Jul-07 15:53
sitebuilderLuc Pattyn4-Jul-07 15:53 
GeneralRe: Emulating ANSI in a TextBox Pin
weis235-Jul-07 14:56
weis235-Jul-07 14:56 
GeneralRe: Emulating ANSI in a TextBox Pin
Luc Pattyn5-Jul-07 15:21
sitebuilderLuc Pattyn5-Jul-07 15:21 
Hi,

1. yes selection across multiple lines would be a problem.

2. by default lines get drawn in single font, size, color as in a regular TextBox
(as opposed to a RichTextBox). Character coloring (or anything else fancy)
would require you choose the OwnerDrawn model, in which you provide the code
to paint each line yourself (a simple Graphics.DrawString would again
offer the default behavior).

3. yes, maipulating lines is easy through the ListBox.Items property, which
lets you add, remove, insert, and modify lines, either through methods
or by using an indexor.

Conclusion: if you need all the fancy coloring and free selection, then ListBox
is not an option, and you must either go for RichTextBox (and live with
degrading performance in case the text gets really large, which is unlikely in
your app), or go for a Panel and do it all yourself.

BTW Come to think of it, I am not sure you can do all required selection stuff
with what a (Rich)TextBox offers; I am not sure how far an ANSI terminal would go,
IIRC a VT-220 could have multiple selections, some steady some blinking...

Cheers.





GeneralRe: Emulating ANSI in a TextBox Pin
weis235-Jul-07 16:01
weis235-Jul-07 16:01 
GeneralRe: Emulating ANSI in a TextBox Pin
Luc Pattyn5-Jul-07 16:38
sitebuilderLuc Pattyn5-Jul-07 16:38 
GeneralRe: Emulating ANSI in a TextBox Pin
weis235-Jul-07 17:01
weis235-Jul-07 17:01 
GeneralRe: Emulating ANSI in a TextBox Pin
Luc Pattyn5-Jul-07 23:43
sitebuilderLuc Pattyn5-Jul-07 23:43 
Questionlistbox scrollbar Pin
MarkB7774-Jul-07 13:24
MarkB7774-Jul-07 13:24 
AnswerRe: listbox scrollbar Pin
Luc Pattyn4-Jul-07 13:37
sitebuilderLuc Pattyn4-Jul-07 13:37 
AnswerRe: listbox scrollbar Pin
lovelynannan20084-Jul-07 16:14
lovelynannan20084-Jul-07 16:14 
Questionstaff working schedule control Pin
Jassim Rahma4-Jul-07 12:50
Jassim Rahma4-Jul-07 12:50 
AnswerRe: staff working schedule control Pin
Christian Graus4-Jul-07 13:53
protectorChristian Graus4-Jul-07 13:53 
QuestionSSL communication without certificate authentication Pin
tariq7864-Jul-07 9:49
tariq7864-Jul-07 9:49 
QuestionCertificate for ssl client server communication Pin
tariq7864-Jul-07 9:20
tariq7864-Jul-07 9:20 
QuestionUdpReceive Method Pin
ramdil4-Jul-07 7:55
ramdil4-Jul-07 7:55 
AnswerRe: UdpReceive Method Pin
Luc Pattyn4-Jul-07 8:03
sitebuilderLuc Pattyn4-Jul-07 8:03 
QuestionInstallation and automatic start for a service Pin
terrible834-Jul-07 7:38
terrible834-Jul-07 7:38 
AnswerRe: Installation and automatic start for a service Pin
Joseph Guadagno4-Jul-07 7:53
Joseph Guadagno4-Jul-07 7:53 
Questiontime out exception while uploading to FTP [modified] Pin
Iftekhar Naim4-Jul-07 7:04
Iftekhar Naim4-Jul-07 7:04 
Questiongmail notifier when a new mail comes Pin
mfmaneef4-Jul-07 5:26
mfmaneef4-Jul-07 5:26 

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.