TreeView left and right arrow keys

  • Thread starter Thread starter Marc Ambrosius
  • Start date Start date
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
 
Back
Top