Home All Groups Group Topic Archive Search About

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

Author
26 Mar 2005 5:48 AM
Hazz
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

Author
26 Mar 2005 6:38 PM
Ken Tucker [MVP]
Hi,

        I believe that you are looking for application.enablevisualstyles.
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/products/TreeView/features.aspx

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

Ken
-----------------
"Hazz" <hazz@nospameroosonic.net> wrote in message
news:et7JndcMFHA.3844@TK2MSFTNGP14.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
Author
26 Mar 2005 8:13 PM
Hazz
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

Show quoteHide quote
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OIK5QMjMFHA.1436@TK2MSFTNGP10.phx.gbl...
> Hi,
>
>        I believe that you are looking for application.enablevisualstyles.
> 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/products/TreeView/features.aspx
>
> Glacical Treelist
> http://www.glacialcomponents.com/ProdDetail/gtl.aspx
>
> Ken
> -----------------
> "Hazz" <hazz@nospameroosonic.net> wrote in message
> news:et7JndcMFHA.3844@TK2MSFTNGP14.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
>
>
>
Author
26 Mar 2005 8:29 PM
Ken Tucker [MVP]
Hi,

            Application.enablevisualstyles will do that on an windows xp
computer. Dont forget to call application.doevents after you enable the
visual styles.

Ken
--------------
"Hazz" <hazz@nospameroosonic.net> wrote in message
news:%23wsRRBkMFHA.2136@TK2MSFTNGP14.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

Show quoteHide quote
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OIK5QMjMFHA.1436@TK2MSFTNGP10.phx.gbl...
> Hi,
>
>        I believe that you are looking for application.enablevisualstyles.
> 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/products/TreeView/features.aspx
>
> Glacical Treelist
> http://www.glacialcomponents.com/ProdDetail/gtl.aspx
>
> Ken
> -----------------
> "Hazz" <hazz@nospameroosonic.net> wrote in message
> news:et7JndcMFHA.3844@TK2MSFTNGP14.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
>
>
>
Author
27 Mar 2005 1:33 PM
Hazz
Thank you for saying it twice Ken. application.enablevisualstyles. why the
application.doevents?
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

Show quoteHide quote
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:OojSVKkMFHA.1176@TK2MSFTNGP12.phx.gbl...
> Hi,
>
>            Application.enablevisualstyles will do that on an windows xp
> computer. Dont forget to call application.doevents after you enable the
> visual styles.
>
> Ken
> --------------
> "Hazz" <hazz@nospameroosonic.net> wrote in message
> news:%23wsRRBkMFHA.2136@TK2MSFTNGP14.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***@bellsouth.net> wrote in message
> news:OIK5QMjMFHA.1436@TK2MSFTNGP10.phx.gbl...
>> Hi,
>>
>>        I believe that you are looking for application.enablevisualstyles.
>> 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/products/TreeView/features.aspx
>>
>> Glacical Treelist
>> http://www.glacialcomponents.com/ProdDetail/gtl.aspx
>>
>> Ken
>> -----------------
>> "Hazz" <hazz@nospameroosonic.net> wrote in message
>> news:et7JndcMFHA.3844@TK2MSFTNGP14.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
>>
>>
>>
>
>
>