473,569 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ 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 7068
"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************ *************@r eallyidont.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
3299
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 function of my.yahoo.com. I tried client side approach, yes I can change display order by JavaScript, but after clicking one of the button the display...
18
3329
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 columns, "scode" and "sname", as 1 column (if not possible then 2 columns will be fine) in the listbox. Can the listbox display 2 columns information...
2
12001
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 however that will just capture a Full Name from Text Box and display information from the Active Directory into a DataTable. I will display that code...
5
1867
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 desktop, but i want to display images directly on the desktop surface. XP / VB.Net --GH
4
7543
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 ----comment01 Icon2 --- Item6 ----comment06
4
3874
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 fields correctly and I suspect this problem is related to Service Pack 3. I haven't been able to find any other posts on the Net about this...
5
2837
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 is what the ListBox uses for its display. Correct?
0
7695
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8119
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7668
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5509
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
2111
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 we have to send another system
1
1209
muto222
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.