I have a treeview control on a form with Scrollable=True.
If a user scrolls the list and then selects a node, the selected node
returned by the AfterSelect event is always the topmost visible node in the
list, not the node selected.
This also happens for the click event, but double-click works ok.
Can someone suggest a workaround for this behaviour?
MikeH - 19 Feb 2005 02:07 GMT
Sorry,
I forgot to add that the behaviour only occurs when the vertical scrollbar
is visible. That is, when the treeview is larger than the available view.
> I have a treeview control on a form with Scrollable=True.
>
[quoted text clipped - 5 lines]
>
> Can someone suggest a workaround for this behaviour?
Bonnie Berent [C# MVP] - 20 Feb 2005 05:37 GMT
Mike,
What version of .NET are you using? This should work. It works fine for me
using 1.1 Framework with C#.
~~Bonnie
> I have a treeview control on a form with Scrollable=True.
>
[quoted text clipped - 5 lines]
>
> Can someone suggest a workaround for this behaviour?