473,545 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
+ 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 10364
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****@IHateSp am.Com> wrote in message
news:Kg_6e.4954 9$AL.23876@lake read08...
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\system 32\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.formscodi ng (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.goog le.com... Treeview & ImageList classes should be located in library
C:\WINNT\system 32\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
12159
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 populated either using VS.NET (my method) or programatically. I assigned the imagelist to the small icons in the listview. Even VS.NET has been...
1
6667
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 adding a ImageList to the TreeView, the ImageIndex property of the items in the TreeView defaults to 0. I could put a blank icon in the ImageList and...
7
2089
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 treeview control set to the imagelist containing the images I want to be displayed next to each node. It seems that no matter what I do there will be no...
1
2250
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 TreeView setting certain Nodes to different graphics from the ImageList (once again at design-time). The problem is, when I add the User Control...
2
3956
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 file I am adding the icon to the imagelist and then use its position to display the icon in the listview.
6
3017
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. Save the project 3. Complied the project (successful) 4. Closed the project 5. Opened the project
0
1189
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 working, and it did display a folder or document icon from the ImageList next to each item in the treeview and listview controls. And then I made some...
1
4894
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... >>; treeViewImageList.Images.Add("abc", sourceIcon); But when I first save the original icon to a stream and then try loading the
0
3181
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 IconName I use the following code OnOpen of the form which is supposed to load images stored in a folder which is defined by CoIconPath
0
7391
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
7651
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7410
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
7746
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5320
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
4941
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...
0
3438
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1869
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
0
693
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.