views:

97

answers:

3

I'm developing a xmpp chat client in C#.NET. I'm little confused about what control should I use for Buddy list. Buddy list will consist of status icon, name & his buddy pic. Can u please recommend that what control will be best for me to use? (Do u think that ListView will be appropriate?)

Another question, I'm using agsxmpp. Does it support invisible status in Gtalk. Is there any library out there bettre than this ?

Thanks.

+1  A: 

I think the ListView would be fine, it supports everything you would need. You could also go with an owner-draw ListBox if you want something with a little more flexibility (though obviously, that'd be more work).

As for your other question, I'm not sure. You might want to check the documentation for the library.

Dean Harding
Allon Guralnek
A: 

Using TreeView will be the best control, it will help you in grouping buddies. I used it before for the same purpose.

Sameh Serag
Thank u very much for ur answer.I think u can do grouping in ListView too. :) But TreeView doesn't fulfill my other requirements(How I'm going to insert buddy icon and status icon for each buddy?)
Arnab
It's ownerdraw. See the code I linked to above.
Joe Hildebrand
A: 

The RosterTree code in Jabber-Net would be a good starting point. It already does owner-draw, and could be pretty easily extended to do avatars by modifying the DrawItem method.

Joe Hildebrand