Listbox - Picture to the left of the text how?

  • Thread starter Thread starter Jim
  • Start date Start date
J

Jim

Hello!

I am creating a windows forms application using vb.net 2003, and was
wondering, how can I display an image in each line of the listbox to the
immediate left of the text? It should look like the URL address looks in
internet explorer with the web page icon next to it... It will be the same
image for every item in the listbox right now.

Yet, when the item is selected, I only want the text to be returned as it
currently does!

Ideally, I would like to grab it from a bitmap file included in the
application.

Does anyone know how I can accomplish this?

Thanks!

Jim
 
* "Jim said:
I am creating a windows forms application using vb.net 2003, and was
wondering, how can I display an image in each line of the listbox to the
immediate left of the text? It should look like the URL address looks in
internet explorer with the web page icon next to it... It will be the same
image for every item in the listbox right now.

Use a listview control instead of a listbox.
 
Ok... I will try that... Is there a way to access the same bitmap that is
displayed in the IE explorer address (the piece of paper with the large E on
it), and use that?

Thanks!

Jim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top