Actually this is a perfectly good place to ask this kind of question.

And it's possible for it to have a whole lot to do with the
WWW.
Visual Basic would probably be a good little learning language to start out with if you really want to learn how to code your own chat program.
You may want to check out
http://planetsourcecode.com for some ideas. Here's a link to a couple chat programs there
http://planetsourcecode.com/vb/scri...rt=Alphabetical
Just search that site for chat programs in each language and you'll find some intersting stuff.
If you really want to create your own chat program though it will take a whole lot of learning if you've never done any coding before. But you can do it!

And like Mp)Tarh said you might want to try C, C++, or Visual Basic. Java would be another good language to learn.