2

I'm writing a C Sharp IRC bot, with forms, and not console. I'm kinda confused as to which control I should use, to display the text from the server/channel, as I'm fairly new to forms and all.

Also, if anyone knows of source code, of a c sharp bot, using forms, please don't hesitate to post it ^^

Thanks, Conlon.

Conlon
  • 21
  • 2
  • Hey, I'd be interested in attempting a similar program as well, any chance I could contact you via AIM or something similar to work together on it? – mowwwalker Mar 22 '12 at 01:20
  • @Walkerneo Yo! That sounds cool, I'd like that. I don't use AIM, I'm afraid. Either Steam or MSN! – Conlon Mar 22 '12 at 01:24
  • Added you. I'd prefer Steam, but it's a hassle if you don't use it. – Conlon Mar 22 '12 at 01:45
  • Yeah, I don't have Steam, but I downloaded Pidgin, which should allow us to chat. It should say I'm online, but let me know if it doesn't. – mowwwalker Mar 22 '12 at 01:46
  • Alright, I downloaded Live Messenger as well, so if it says I'm still offline, then something may be amiss. What's your email? – mowwwalker Mar 22 '12 at 01:59

2 Answers2

1

you could use a richtextbox.... it has a bit of a learning curve in order to use it really well, but it is quite capable.

Another option if you just want simple text and you want to append a line at a time is a Listbox.

With both options, you will need to make sure you don't keep adding data without purging otherwise it will run out of memory. So you may also wish to build a logging mechanisim also so you can have a file based history.

Keith Nicholas
  • 43,549
  • 15
  • 93
  • 156
  • Care to elaborate on a few things? Using this, when stuff is written to it, wouldn't it be saved over the existing text? Maybe I'm just confusing myself. – Conlon Mar 22 '12 at 01:26
  • @Conlon, You would be able to access the text that's already in the control, and append any new text programmatically. – mowwwalker Mar 22 '12 at 01:27
  • @Walkerneo, makes sense. I was just thinking in the lines of extra functions, used by this richtextbox or whatever. – Conlon Mar 22 '12 at 01:31
  • Thanks for the help, @Keith. I can't upvote you, I'm afraid : – Conlon Mar 22 '12 at 01:57
0

You can use a text box and set it to multiline

Michael Hahn
  • 143
  • 1
  • 5
  • 12
  • But with a textbox, woulnd't it write over the last text? I mean, how would the text be stored? – Conlon Mar 22 '12 at 01:19
  • I just found this example from another question it give your the code to create your own chat with client and server http://www.geekpedia.com/tutorial239_Csharp-Chat-Part-1---Building-the-Chat-Client.html – Michael Hahn Mar 22 '12 at 02:28