Problem with TreeView Vertical Scrollbar Not Appearing

M

Mark Olbert

I have a custom control that contains a pair of treeview controls. I've noticed that if there is
only one "top level" node in a treeview -- but enough child nodes to require a vertical scrollbar --
the vertical scrollbar does not appear.

If there are enough top level nodes to warrant a vertical scrollbar, it appears.

This looks like a bug in the treeview control in that it's not using the "extent" of displayed child
nodes in it's determination of whether a vertical scrollbar is needed.

Is there a workaround for this problem? I didn't notice any obvious way of forcing the appearance of
a vertical scrollbar in a treeview.

Thanx in advance for any help or advice.

- Mark
 
R

Rhett Gong

Hi Mark,
I have made a test on my machine, if there are enough child nodes to
require a vertical scrollbar, the scrollbar does appear as expected.
Have you set the Scrollable property to true?
Can you send me a sample project which can be used to repro this
problem?

Rhett Gong [MS]
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.
 
M

Mark Olbert

Yes, Scrollable is set to True.

I don't have time to create a test project, and the one I'm working on is way too big to send you.

Any other suggestions? Has this problem been reported before?

- Mark
 
R

Rhett Gong

Hi Mark,
I have not seen any similiar problem before.
If you don't have time to create a test project, please tell me how to
repro this problem. I can't figure out what happens in your code without
repro.
Thanks for your understanding!

Rhett Gong [MS]
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no rights.
Please reply to newsgroups only. Thanks.
 

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