DoubleClick in TreeView

  • Thread starter Thread starter Romu
  • Start date Start date
R

Romu

Hello all,
does anybody know how to handle the DoubleClick in a
TreeView ?

Is there another way than to handle the Click event
twice ?

Thanks.
 
AFAIK the DoubleClick is not available in the .NET CF version of the
TreeView, so you have to detect double clicks yourself by handling the Click
event, setting some state and if another Click event is received within a
certain time take action on it as if it were a DoubleClick.
 
I've tried to catch the Click event in the TreeView, but seems to me
that it doesn't fire correctly. The only thing I can get is the
AfterSelect event (and Only if the selected index changes). Can you
point me in the right direction? I really want to get the double click
to work too.

Thanks
 
Sorry guys, the documentation fooled me. Unfortunately not only double
clicks, but also clicks are not supported for a tree view. I guess you are
stuck with BeforeSelect and AfterSelect events. I also looked at the native
Windows messages that are defined for tree views and unfortunately I didn't
see mouse button down events there either, so it looks like the control
receives those events and handles them internally. Sorry if I gave you some
hope.
 
Hi,

We have it (and quite a few other treeview events) working in our treeview
control, which is derived from the CF TreeView control.

You can download the trial of our Dynamic Framework at www.mcsoft.com.au

If you decide to purchase, you can specify which functionality you desire,
and we only send you that.

Regards

Andrew
www.mcsoft.com.au
 
That's weird, because the Click event appears in the doc
and in Intellisense when you write the code.

From where have you had the information the Click is not
supported ? Is it a special eMVP doc ;-)
 
No, it is not a special eMVP doc. It is also true that it appears that the
click event is supported, that explains my first (wrong) answer. For some
events on most controls Intellisense and MSDN are not entirely correct. What
you could do is download the API Documentation: Class Library Comparison
Tool from: http://samples.gotdotnet.com/quickstart/CompactFramework/. It
tells you accurately what functionality is supported for each control.
 
Back
Top