Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Smiley icon to be displayed in listbox.

Smiley icon to be displayed in listbox.

Scheduled Pinned Locked Moved C#
csharpquestiondatabase
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nekshan
    wrote on last edited by
    #1

    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.

    C V 2 Replies Last reply
    0
    • N 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.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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 )

      L 1 Reply Last reply
      0
      • N 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.

        V Offline
        V Offline
        virendra patel
        wrote on last edited by
        #3

        use grid control not list box for it.

        O 1 Reply Last reply
        0
        • V virendra patel

          use grid control not list box for it.

          O Offline
          O Offline
          Obaid ur Rehman
          wrote on last edited by
          #4

          You can also use the ListView control.

          1 Reply Last reply
          0
          • C Christian Graus

            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 )

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            :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]

            C 1 Reply Last reply
            0
            • L Luc Pattyn

              :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]

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              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 )

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups