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

Home Posts Topics Members FAQ

Use Windows ImageList for program icons in treeview control?

Is possible to use the windows image list for icon display in my treeview
control?

Would appreciate it you could point me towards a code sample or Key phrase
to use in a google search.

Thanks

--

/ Sean Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)
Nov 13 '05 #1
4 10353
By this, I mean the source of all default application icons that Windows
displays in WindowsExplorer.

--

/ Sean Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

"What-a-Tool" <Se****@IHateSpam.Com> wrote in message
news:Kg_6e.49549$AL.23876@lakeread08...
Is possible to use the windows image list for icon display in my treeview
control?

Would appreciate it you could point me towards a code sample or Key phrase
to use in a google search.

Thanks

--

/ Sean Mc /
"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

Nov 13 '05 #2
What-a-Tool wrote:
By this, I mean the source of all default application icons that Windows
displays in WindowsExplorer.


http://ffdba.com/downloads/iconsandgifs.zip
may help ... but these are from the last century.

--
--
Lyle
--
Nov 13 '05 #3
Treeview & ImageList classes should be located in library
C:\WINNT\system32\MSCOMCTL.OCX
Microsoft Windows Common Controls 6.0 (SP6)

"Refer" to above OCX & Press F2. The API for these 2 classes within
this library will be shown. There should be a help file somewhere
about this library. I cannot find it in my PC. Please try it in
MSDN.

Treeview class contains property ImageList. Put an ImageList object
to it.
Node class contains a property Image. Put a number which acts as
index within the ImageList. Add the node to the Treeview.
Nov 13 '05 #4
Sorry, I guess I didn't make it very clear on what I wans trying to do. I
wasn't asking about the imagelist or treeview common controls, but on a way
to use Windows built in image (the icons Windows display sin Windows
Explorer) list to supply icons to use in these controls.

Was given a pointer on Acess.formscoding (I know - double posting - bad me!)
:
Hi Sean

You will find some helpful information here:
http://www.thescarms.com/vbasic/extracticons.asp

--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand
"Johnson Cheung" <jo*************@yahoo.com.hk> wrote in message
news:3d*************************@posting.google.co m... Treeview & ImageList classes should be located in library
C:\WINNT\system32\MSCOMCTL.OCX
Microsoft Windows Common Controls 6.0 (SP6)

"Refer" to above OCX & Press F2. The API for these 2 classes within
this library will be shown. There should be a help file somewhere
about this library. I cannot find it in my PC. Please try it in
MSDN.

Treeview class contains property ImageList. Put an ImageList object
to it.
Node class contains a property Image. Put a number which acts as
index within the ImageList. Add the node to the Treeview.

Nov 13 '05 #5

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

Similar topics

3
by: Ian | last post by:
Hi, I've been trying to create a listview and treeview with icons. You would think it's a pretty straight forward task. API documentation states you simply assign an ImageList - that's been...
1
by: paradox | last post by:
I want to have a TreeView that shows an image on some items, but not all. Basically, if a certain condition is true, a caution icon is placed next to the treeview item. The problem is that, by...
7
by: Andrew Christiansen | last post by:
Hey everyone. I have Visual Basic .NET 2003 and am trying to show images on a treeview control. I have the imagelist on the form filled with images, and have the ImageList property of the...
1
by: Webster | last post by:
Hello, I created a User Control consisting of a TreeView and an ImageList. I've populated the ImageList with pictures (design-time using the Properties Window), and I've added some Nodes to the...
2
by: sonu | last post by:
Hi, I have a problem for use of imagelist. The problem is I have written a code which returns me the icons associated with the files depending on their type. After getting the icon for the...
6
by: henrycortezwu | last post by:
Hi, I have a WinXPSP2, P4 3.2GHZ, 1GIG RAM on my dev machine using VS2005 VB.NET. I did the following procedure: 1. Added 82 icons (128x128 in size & 32bit Depth) in an imagelist control 2....
0
by: crealas | last post by:
I'm currently building a GUI in C# using Microsoft Visual Studio 2005. I have put together an Explorer style control as explained in the walkthrough in the Visual Studio 2005 help. I got it...
1
by: =?Utf-8?B?QWRhbQ==?= | last post by:
I'm having a problem loading an Icon into an ImageList. When I load the icon directly it works fine, like this: Icon sourceIcon = << Get an icon from somewhere... >>;...
0
by: Phil Stanton | last post by:
I am using a Treeview type menu sustem and need to load various icons I have a form called Icons with a MSComctlLib.ImageListCtrl.2 control on it called ImList The IconTable holds IconNo and...
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
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...
1
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...
0
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,...
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: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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.