Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

I am building a XMPP chat application using C# Winforms.
I need a listbox which shows users avatar, and status icon and name..
Which control I can use to implement this ?
Also, How can I easily update the status without looping through the list when a presence status change ??

Thanks
Posted

1 solution

You were on the right track. Using Treelist is definately the way to go. Read some articles on how to add images to the treelist etc.

http://msdn.microsoft.com/en-us/library/system.windows.forms.treeview.imagelist.aspx[^]

You will have to iterate through the treelist to update statusses though. There is no other way. Or bind the treelist to an underlying datasource and iterate through that .. e.g Rows. Unless you have like 20.000 users in your chat application it will be fast enough.
 
Share this answer
 
v2
Comments
Yesudasan Moses 30-Sep-13 4:54am    
Thanks Rick =)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900