473,765 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

changing icons on Treeview control

I created my own icons, and I would like to be able to use them instead of
all the default[msdn, news..ect..] icons they provide. Is this possible?
--
lee
Nov 19 '05 #1
3 1990
I added my custom icons to an image list, assigned the treeview.imagel ist
property to this imagelist, assigned the treeview.nodes( x).imageindex to the
corresponding nodes as i added them



"lwhitb1" wrote in message
I created my own icons, and I would like to be able to use them instead of
all the default[msdn, news..ect..] icons they provide. Is this possible?
--
lee
Nov 19 '05 #2
I see the image list as a component when building a C# application, but I am
building a web application, and I don't see the image list in the toolbar?


--
lee


"Clamps" wrote:
I added my custom icons to an image list, assigned the treeview.imagel ist
property to this imagelist, assigned the treeview.nodes( x).imageindex to the
corresponding nodes as i added them

"lwhitb1" wrote in message
I created my own icons, and I would like to be able to use them instead of
all the default[msdn, news..ect..] icons they provide. Is this possible?
--
lee

Nov 19 '05 #3
I am building a web application. I only see the image list component on a
regular C# application?
--
lee


"Clamps" wrote:
I added my custom icons to an image list, assigned the treeview.imagel ist
property to this imagelist, assigned the treeview.nodes( x).imageindex to the
corresponding nodes as i added them

"lwhitb1" wrote in message
news..
I created my own icons, and I would like to be able to use them instead of
all the default[msdn, news..ect..] icons they provide. Is this possible?
--
lee

Nov 19 '05 #4

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

Similar topics

0
10784
by: Garet Cammer | last post by:
I am writing a VB 6.0 program similar to Windows Explorer, which has a tree view and a list view to select directories and files. I would like to associate an icon with each file, according to the standard file extension, or use application file's own icon, just like the Explorer does. It is quite easy to place a icon using the ImageList control, together with the "TreeView.Nodes.Add" and "ListItem.SmallIcon" methods. The question is, how...
4
10374
by: What-a-Tool | last post by:
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 --
3
1611
by: Keith Elder | last post by:
I am using VS 2005 Beta and I have a Treeview UserControl that I built for a menu. I added an imageList to the control and added some icons that I want to associate with the control. When I build the solution and view the UserControl placed on a form in the designer, I can see the icons. However, when I run the solution's executable I do not see the icons in the Treeview. It is like the images are not getting placed into the output of...
2
2009
by: OpticTygre | last post by:
Hi folks. I'm currently in the midst of building an explorer - like viewer for a bigger project I'm going to be working on soon. When building the class for my Treeview and Listview controls, I'm using the ExtractIconEx API function (see code below). I found that all the icons windows uses are not necessarily in the Shell32.dll file, though. I did some digging, and found a few other places where Icon files are being pulled from to be...
2
2024
by: Phill W. | last post by:
(Using VB'2003) Is there a "recommended" size for TreeView icons these days? I've rummaged around MSDN and Google and can't find anything that suggests "For best results, icons should be such-and-such a size". Any recommendations? TIA, Phill W.
0
967
by: Roguespider | last post by:
I'm new to posting but have been using past help so I come seeking some. I'm using VB.NET 2002 writing a form that contains both a TreeView and a ListView. I'm using the commonly mentioned SHFILEINFO to get icons for known file types. For a while I was having a problem with a black border around them until I learned you use a <filename>.exe.manifest file, which got rid of the borders. This seemed to work until I decided to make a custom...
1
2120
by: kriz | last post by:
Hello Is it possible to resize icons in treeview, it seems its always 16x16 Or maybe its possible to put picutre of custom size into treeview, somehow ....
1
2133
by: vegas26 | last post by:
hi i have a strange behaviour in my treeview control. it shows no more my icons after i did translate my winform into other languages (localized). it still shows the placeholders for the icons but unfortunately no icons anymore.
8
12139
by: sphinney | last post by:
Hello. I'm using a treeview control on my Access 2007 form. The treeview will be used to show the directory structure of a given file path. I've been able to successfully populate the nodes on the treeview. What I don't know how to do is locate the appropriate icons to place next to the nodes. Or, put another way, how to I query local computer's OS to find out which icon goes with each file? For example, I want to display folder icon...
0
9398
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9832
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8831
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7378
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6649
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3924
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
3
2805
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.