TreeView - Scrollbar problems

G

Guest

Hi,

[ BTW I'm using C# .Net 1.1 ]

I'm using a TreeView and adding nodes programmatically. However even though
the text for the nodes doesnt require a horizontal scrollbar it is also
visible when I start my app. If i resize the TreeView so that I do need a
horizontal scroll bar I get a cross between XP style and Classic style ( the
arrows are classic style the scrollbox is XP style ), if then I resize so
that the treeview is greater than all entries in the tree the scrollbar
disappears. Then when I resize the treeview again so that it is needed I get
a full XP style scrollbar.

How can I fix all of these problems and also only show the inital horizontal
scrollbar if it is needed - not show it all the time like it does at the
moment.

I've messed around with using DockStyle.Fill and anchoring, neither seems to
make a different.

[ My app uses panels for layout management, and then attached the treeview
into one of the panels - not sure if the is the cause of the problem or not
as the dock style seems to be working perfectly as the treeview is always
correctly sized to the hosting panel. ]

regards,
Rich
 
G

Guest

Excellent - it worked first go.

I tried searching on GoogleGroups first but couldnt find anything, must have
put the wrong search criteria in.

Many Thanks.
 
H

Herfried K. Wagner [MVP]

RichS said:
I tried searching on GoogleGroups first but couldnt find anything, must
have
put the wrong search criteria in.

I searched for "herfried treeview horizontal" -- these keywords are not
obvious ;-).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top