Smiley icon to be displayed in listbox.
-
I m making a project in c#.net,a window application. I have a form on which i have kept a listbox, which show names of clients who are online at that particular time through a query. Now, how can i display a small smiley image(a .jpg image) before the clients name who is online(in the listbox)? Before each clients name in d listbox this smiley icon should appear (as in yahoo messenger)... How can i do this? Thank you in advance. Regards nekshan.
-
I m making a project in c#.net,a window application. I have a form on which i have kept a listbox, which show names of clients who are online at that particular time through a query. Now, how can i display a small smiley image(a .jpg image) before the clients name who is online(in the listbox)? Before each clients name in d listbox this smiley icon should appear (as in yahoo messenger)... How can i do this? Thank you in advance. Regards nekshan.
you need to write your own control, a listbox can only display text.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
I m making a project in c#.net,a window application. I have a form on which i have kept a listbox, which show names of clients who are online at that particular time through a query. Now, how can i display a small smiley image(a .jpg image) before the clients name who is online(in the listbox)? Before each clients name in d listbox this smiley icon should appear (as in yahoo messenger)... How can i do this? Thank you in advance. Regards nekshan.
use grid control not list box for it.
-
use grid control not list box for it.
You can also use the ListView control.
-
you need to write your own control, a listbox can only display text.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
:confused: a ListBox contains an ItemCollection which holds objects; these can be user drawn, (MeasureItem, DrawItem events) and are not limited to text... :)
Luc Pattyn [My Articles]
-
:confused: a ListBox contains an ItemCollection which holds objects; these can be user drawn, (MeasureItem, DrawItem events) and are not limited to text... :)
Luc Pattyn [My Articles]
Damn - for some reason, I thought he said a combo box. I must have been tired...
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )