Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2004

Tip: Looking for answers? Try searching our database.

Listbox - Picture to the left of the text how?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jim - 27 Aug 2004 18:09 GMT
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
Herfried K. Wagner [MVP] - 27 Aug 2004 18:17 GMT
* "Jim" <jr@nospam.wi.rr.com> scripsit:
> 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.

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://dotnet.mvps.org/dotnet/faqs/

Jim - 27 Aug 2004 18:28 GMT
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

>* "Jim" <jr@nospam.wi.rr.com> scripsit:
>> I am creating a windows forms application using vb.net 2003, and was
[quoted text clipped - 5 lines]
>
> Use a listview control instead of a listbox.
Sijin Joseph - 29 Aug 2004 08:29 GMT
These tools might help

http://www.iconcatcher.com/
http://www.users.on.net/johnson/resourcehacker/

The Explorer icons should be availalbe in explorer.exe and iexplore.exe

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> 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
[quoted text clipped - 14 lines]
>>
>>Use a listview control instead of a listbox.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.