How do I make a chat like interface/display?
Basically, I want to have a chat like interface - one line with name and time, the next few lines with a message.
In HTML / ASP.Net (or any other web language), this is obviously easy - build a component and just have multiple copies for each chat object.
I have been trying on winforms, and the closest I have come is a TreeView 开发者_如何学Clist, but it does not look at all pretty!
I was just wondering if anyone can point me in the right direction of what I need to do to achieve a nice formatted text box in the style of chat applications?
I don't think it's any easier in ASP.Net than it is in Winforms. Try the RichTextBox control - you can control the entire layout (for the most part).
You should use some kind of list view. At least it's the way it's done in WPF. Should be possible in Forms, too.
You could use ListView and edit the template. At least it's how I've done it in the past.
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.listview.layouttemplate.aspx
精彩评论