From: Geoff Schaller on
The WndProc is the best place to trap the initial event.
The treeview generated events come second.

"J�rgen Knauf" <j.knauf(a)kp-software.de> wrote in message
news:4c14c85e$0$7665$9b4e6d93(a)newsspool1.arcor-online.net:

> Stefan,
>
> where can I evaluate both events, in the dispatch method of the window?
>
> What is the Name of the TreeviewItemChanged event TVN_?
>
> Juergen
>
>
>
> "Stefan" <info(a)sanosoft.com> schrieb im Newsbeitrag
> news:18152d7c-07c5-4118-9871-289aabf83e50(a)h13g2000yqm.googlegroups.com...
>
> > There will always be two events when you select an item by
> > doubleclick: the TreeViewSelectionChanged is a notification sent by
> > the control to the owner when a new item is selected and the
> > MouseButtonDoubleClick is generated by the control itself when a
> > doubleclick occurs.
> >
>
> >> I can only evaluate the TreeViewSelectionChanged event
>
> > I can not understand what you mean. Why can you evaluate only the
> > TreeViewSelectionChanged event? Put the code in a method and call the
> > method on both events!
> >
> > Stefan