Click here to Skip to main content
15,910,358 members
Home / Discussions / C#
   

C#

 
GeneralRe: Development limitations of Express Edition? Pin
Ashley van Gerven4-Jul-07 18:43
Ashley van Gerven4-Jul-07 18:43 
GeneralRe: Development limitations of Express Edition? Pin
urbane.tiger4-Jul-07 21:43
urbane.tiger4-Jul-07 21:43 
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 
Hi,

I tend to use TextBox only for single-line or few-lines stuff.

For an editor or a terminal, I would choose between:
- a Panel, i.e. doing it all myself (data structures, paint handler, etc)
- a ListBox
although I admit you can do it with a TextBox too.

the advantages of ListBox are:
- treats lines as separate objects; this is both easy to use and fast (TextBox concatenates
all text lines to a single string)
- knows how to draw a line of text (but also supports user drawing)
- scrolling could mean: remove topmost text line, add new text line at bottom (so make
sure to never hold more than 25 lines)
- emulating terminal with buffer larger than display height is free: use vertical scrollbar
(keep the LB 25 lines high), and let it scroll when more lines have been added to it

Hope this helps.

Smile | :)


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 
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 

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.