473,472 Members | 1,702 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to display/ change icons in listbox

Hi

I want to develop my application and displaying icons with
the items in the listbox.For example i have displayed some
webpage paths in the listbox and i want to display an icon
(Internet Explorer symbol)besides the item.How can i
disply,if suggest me thanks in advance.
Mamatha
Nov 21 '05 #1
3 7064
"Mamatha" <ma***********@yahoo.com>'s wild thoughts were
released on Mon, 4 Oct 2004 07:06:24 -0700 bearing the
following fruit:
Hi

I want to develop my application and displaying icons with
the items in the listbox.For example i have displayed some
webpage paths in the listbox and i want to display an icon
(Internet Explorer symbol)besides the item.How can i
disply,if suggest me thanks in advance.


Use a different control that does support this. The listview
or a grid control for example.


Jan Hyde (VB MVP)

--
Absentee: A missing golf peg. (Liguorian)

[Abolish the TV License - http://www.tvlicensing.biz/]

Nov 21 '05 #2
Using a list box, you need to make it "owner draw" and then render each list
box row yourself. However, a ListView already has the facility to display
an icon along-side a row, so you might want to look at using that instead.

"Mamatha" <ma***********@yahoo.com> wrote in message
news:1c****************************@phx.gbl...
Hi

I want to develop my application and displaying icons with
the items in the listbox.For example i have displayed some
webpage paths in the listbox and i want to display an icon
(Internet Explorer symbol)besides the item.How can i
disply,if suggest me thanks in advance.
Mamatha

Nov 21 '05 #3
"Robin Tucker" <id*************************@reallyidont.com> schrieb:
Using a list box, you need to make it "owner draw"


ListBox with Icons
<URL:http://www.codeproject.com/cs/combobox/glistbox.asp>

I'd use a listview control instead...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Hardy Wang | last post by:
Hi I have a ListBox control in my ASP.NET page. After I binding data to this control, I would like to be able to change this display order of items in this control. Just like change layout...
18
by: Alpha | last post by:
Hi, I'm working on a Windows applicaton with VS 2003 on windows 2000. I have a listbox that I have binded to a dataset table, "source" which has 3 columns. I would like to display 2 of those...
2
by: j.m.osterman | last post by:
I haven't found exactly what I've been trying to do. All I am trying to do for now is just display usernames from Active Directory into a ListBox control on a page. I have found some code...
5
by: GH | last post by:
Is it possible to display images on the desktop itself, like the bacground but not as a background? And not as icons either. Anything you put in the \Desktop folder shows up as an icon on the...
4
by: Thomas Adler | last post by:
Hello, I want to create a listbox with icons. Icon1 --- Item1 ----comment01 Icon1 --- Item2 ----comment01 Icon1 --- Item3 ----comment01 Icon2 --- Item4 ----comment01 Icon1 --- Item5...
4
by: cheltboy | last post by:
At one of my client sites we noticed a few weeks ago that Listboxes which previously showed "Yes" or "No" are now showing "-1" or "0". The underlying tables and queries are displaying True/False...
5
by: Academia | last post by:
(If you've seen this in the drawing NG, sorry. I inadvertently sent it there.) I have a listbox populated with Objects. The Class has a String field that ToString returns. I assume that...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.