Click here to Skip to main content
16,004,887 members
Home / Discussions / C#
   

C#

 
AnswerRe: Development limitations of Express Edition? Pin
Vikram A Punathambekar4-Jul-07 16:38
Vikram A Punathambekar4-Jul-07 16:38 
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 
Hi there! I'm an amateur programmer doing a "for fun" project, and am looking for some helpful advice. I'm trying to make a terminal emulator that can emulate ANSI (ANSI X3.64, aka pretty colors in a telnet session) for the purpose of connecting to old BBS software and playing the games of my youth. I already have the Telnet part nailed thanks to a fine article from this site, but the ANSI emulation is starting to look pretty daunting.

My question: Is the best way to do this to use the TextBox component? Changing text color is no problem, but ANSI has escape sequences to move the cursor around, and most BBS software uses them heavily. For instance, if I encountered an ANSI sequence that means "move the cursor to row 3, col 10, and print the letter A", I'm not sure what the "right" way to do that in a TextBox would be. The best way I can think of is to pre-populate the TextBox.Text string with enough spaces to fill the screen, and then replace the character at position ((number of columns on the screen * 2) + 10) of the string, but that seems hideously inelegant.

Alternately, is there some other component that would be better suited to this? Should I be leveraging existing ANSI support from somewhere, like ANSI.SYS? Any suggestions are welcome, and thanks in advance.

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

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.