TreeView Navigation

  • Thread starter Thread starter Zamolxe
  • Start date Start date
Z

Zamolxe

I have a TreeView on my app and I want to use the arrows to navigate in
it but every time i click on one of the nodes and then press an arrow
the TreeView losses focus and I am forced to click him again how can I
resolve this?

THX
 
Zamolxe,

Are you doing something in the click event of the treeview which is
causing another control to gain focus?
 
Zamolxe,

Are you doing something in the click event handler which is causing
another control to obtain focus?
 
Yes
after I haved pressed the node in a richTextBox is displayed something


SO how can I resolve this?
 
Zamolxe,

Chances are this is the culprit. I would look at the event handler and
determine which call to the rich text box is causing you to lose the focus.
Then, work around it. In the worst case, you can always call the Focus
method on the control to get focus back (after you work on the rich text
view).
 
Back
Top