TreeView left and right arrow keys

M

Marc Ambrosius

Hi,

I have to expand and collapse nodes of a TreeView depending on the status of
the node's CheckBox. Therefore I have to prevent the user from expanding and
collapsing the nodes by pressing the left and right arrow keys. In the full
framework this is easy done by tracking the KeyDown event of the TreeView
and setting e.Handled = true if left or right was pressed. In .NET CF 1.0
SP3 you can do the same but even after setting e.Handled = true (this code
is reached) the nodes are expanding or collapsing.

Can I do anything alse?

Thanks for any help,

Marc
 

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