473,686 Members | 2,057 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

spice the boring default winforms treeview appearance up a bit...

I am using the Winforms Treeview right out of the toolbox with all the
default settings. It looks very boring.
What can I do to dress it up and make it look at least kind of cool?

I remember hearing one time that one line of code would give it a Windows XP
look and feel. But I can't remember what that was.
I would like to give it some depth or 3D effect with just a little bit of
system color scheme behind the node boxes.

Thank you for any ideas. -hazz
Nov 21 '05 #1
4 3505
Hi,

I believe that you are looking for application.ena blevisualstyles .
Unfortunately that doesnt do much for the treeview control. You might need
to use a third party control to see much of a difference.

Developers express treelist
http://www.devexpress.com/Products/NET/XtraTreeList/

Pure Components Treeview
http://www.purecomponents.com/produc.../features.aspx

Glacical Treelist
http://www.glacialcomponents.com/ProdDetail/gtl.aspx

Ken
-----------------
"Hazz" <ha**@nospamero osonic.net> wrote in message
news:et******** ******@TK2MSFTN GP14.phx.gbl...
I am using the Winforms Treeview right out of the toolbox with all the
default settings. It looks very boring.
What can I do to dress it up and make it look at least kind of cool?

I remember hearing one time that one line of code would give it a Windows XP
look and feel. But I can't remember what that was.
I would like to give it some depth or 3D effect with just a little bit of
system color scheme behind the node boxes.

Thank you for any ideas. -hazz

Nov 21 '05 #2
Thank you for these ideas Ken.
For a start I'll look at the imagelist collection and see what I can do
there.
And if I could just make those boxes at the nodes look a little 3D'ish, that
might help.
-hazz

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

I believe that you are looking for application.ena blevisualstyles .
Unfortunately that doesnt do much for the treeview control. You might
need
to use a third party control to see much of a difference.

Developers express treelist
http://www.devexpress.com/Products/NET/XtraTreeList/

Pure Components Treeview
http://www.purecomponents.com/produc.../features.aspx

Glacical Treelist
http://www.glacialcomponents.com/ProdDetail/gtl.aspx

Ken
-----------------
"Hazz" <ha**@nospamero osonic.net> wrote in message
news:et******** ******@TK2MSFTN GP14.phx.gbl...
I am using the Winforms Treeview right out of the toolbox with all the
default settings. It looks very boring.
What can I do to dress it up and make it look at least kind of cool?

I remember hearing one time that one line of code would give it a Windows
XP
look and feel. But I can't remember what that was.
I would like to give it some depth or 3D effect with just a little bit of
system color scheme behind the node boxes.

Thank you for any ideas. -hazz

Nov 21 '05 #3
Hi,

Application.ena blevisualstyles will do that on an windows xp
computer. Dont forget to call application.doe vents after you enable the
visual styles.

Ken
--------------
"Hazz" <ha**@nospamero osonic.net> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Thank you for these ideas Ken.
For a start I'll look at the imagelist collection and see what I can do
there.
And if I could just make those boxes at the nodes look a little 3D'ish, that
might help.
-hazz

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

I believe that you are looking for application.ena blevisualstyles .
Unfortunately that doesnt do much for the treeview control. You might
need
to use a third party control to see much of a difference.

Developers express treelist
http://www.devexpress.com/Products/NET/XtraTreeList/

Pure Components Treeview
http://www.purecomponents.com/produc.../features.aspx

Glacical Treelist
http://www.glacialcomponents.com/ProdDetail/gtl.aspx

Ken
-----------------
"Hazz" <ha**@nospamero osonic.net> wrote in message
news:et******** ******@TK2MSFTN GP14.phx.gbl...
I am using the Winforms Treeview right out of the toolbox with all the
default settings. It looks very boring.
What can I do to dress it up and make it look at least kind of cool?

I remember hearing one time that one line of code would give it a Windows
XP
look and feel. But I can't remember what that was.
I would like to give it some depth or 3D effect with just a little bit of
system color scheme behind the node boxes.

Thank you for any ideas. -hazz


Nov 21 '05 #4
Thank you for saying it twice Ken. application.ena blevisualstyles . why the
application.doe vents?
I included these two lines on by .net 1.1 based vs.net app but didn't notice
any difference whatsoever in the appearance.
But you got me pointed in the right direction. -hazz

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:Oo******** ******@TK2MSFTN GP12.phx.gbl...
Hi,

Application.ena blevisualstyles will do that on an windows xp
computer. Dont forget to call application.doe vents after you enable the
visual styles.

Ken
--------------
"Hazz" <ha**@nospamero osonic.net> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
Thank you for these ideas Ken.
For a start I'll look at the imagelist collection and see what I can do
there.
And if I could just make those boxes at the nodes look a little 3D'ish,
that
might help.
-hazz

"Ken Tucker [MVP]" <vb***@bellsout h.net> wrote in message
news:OI******** ******@TK2MSFTN GP10.phx.gbl...
Hi,

I believe that you are looking for application.ena blevisualstyles .
Unfortunately that doesnt do much for the treeview control. You might
need
to use a third party control to see much of a difference.

Developers express treelist
http://www.devexpress.com/Products/NET/XtraTreeList/

Pure Components Treeview
http://www.purecomponents.com/produc.../features.aspx

Glacical Treelist
http://www.glacialcomponents.com/ProdDetail/gtl.aspx

Ken
-----------------
"Hazz" <ha**@nospamero osonic.net> wrote in message
news:et******** ******@TK2MSFTN GP14.phx.gbl...
I am using the Winforms Treeview right out of the toolbox with all the
default settings. It looks very boring.
What can I do to dress it up and make it look at least kind of cool?

I remember hearing one time that one line of code would give it a Windows
XP
look and feel. But I can't remember what that was.
I would like to give it some depth or 3D effect with just a little bit of
system color scheme behind the node boxes.

Thank you for any ideas. -hazz


Nov 21 '05 #5

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

Similar topics

0
1441
by: timtos | last post by:
I want to customize the appearance of node text in a treeview control. I´ve found an article about including the paint event for a treeview control but it seems that I need to catch up another win32 api function. Something like DrawItem that exists for a listbox would be nice. Any ideas what function (event) do I have to override? Any general tips and hints for changing the appearance of text in a tree view control (like seen in Outlook...
0
1466
by: stardust | last post by:
Hi everyone, Within a Winform application, a treeview is contained in a User Control and the User Control is then located within a splitview. When the UserControl added some nodes into the Treeview, the treeview is not displaying the added nodes, it just keep displaying the initial node added to it during initallisation. Tried variious method like TreeView.Invalidate() and TreeView.Update(). The code which adds nodes to the treeview is...
10
2356
by: p3t3r | last post by:
I have a treeview sourced from a SiteMap. I want to use 2 different CSS styles for the root level nodes. The topmost root node should not have a top border, all the other root nodes should have a top border. Is it possible to have more than 1 style at the same level (parent node) when using a SiteMap? I want it to appear something like this and I can only find a way to either have the border on all root nodes or none at all. In...
0
1335
by: Corky Whiteboard | last post by:
I have a Winforms treeview with subclassed treenodes. The treeview has "ShowNodeToolTips" set to true. The text is showing for each node, but it is not formatted 'pretty' - it comes out in one long line. Is there some way to get the formatting similar to what's available with the standard "ToolTip" windows control? This control seems only to work with other winforms controls, which a treenode is not. Thanx. Corky Whiteboard
3
3107
by: edamron | last post by:
I am writing my first VB.Net program and have come across an interesting problem. My department generates large volumes of documents. By law we are required to keep the documents for a specific period of time based on several factors. The IT department has been asked to develop a program to assist in archiving the older documents. We have a stored procedure that returns the docket numbers to the cases that may have documents which are...
0
1990
by: noneya22 | last post by:
I want to use a TreeView control as a one-level, vertical navigation menu. I'm using this control currently with a SiteMapDataSource and .sitemap file. I've written code that associates an image with each TreeView node based upon a custom attribute I have included in the siteMapNode nodes of my .sitemap file. This all works as desired, including the security trimming which is especially desired behavior. The nodes of the TreeView...
1
2236
by: echuck66 | last post by:
Hi, I have a Winforms 2.0 project that I'm working on that involves populating a treeview control from data contained in a fairly large dataset that has to be refreshed periodically. I have no problems populating the treeview nodes initially, but am somewhat flustered as to how I should go about keeping the treeview control current with the dataset. After the dataset has been refreshed, I can, of course, clear the treeview nodes and...
4
4994
by: frostbb | last post by:
I have a C# WinForms treeview with 20 or so 'level 0' nodes. My users will normally have 2 of the 'level 0' branches open down to a '5th level' selected node. The users will make updates to the 2 selected nodes that will alter the node name. I think I need to rebuild the TreeView to get everything synchronized after they click an update button.
1
6163
by: renuami | last post by:
Hello Please advise .... I do not know in which section i should be posting Winforms Questions. There is not Option. So i am posting it here... apologize for any inconvinence..... This is my first time working with treeview control in winforms. Can someone please help me how to bind data to winforms tree view from 3 tables. I need the out put as follows I need the output as.
0
8586
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9057
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8780
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...
1
6442
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
5800
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
4312
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...
0
4536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2208
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1941
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.