Help - Why is double-click ignored??

S

Siv

Hi,
I posted earlier in the week and no-one responded so i thought I would try
again. My question is:

I have a ListView control in a Windows application, currently single
clicking a customer name in this list, selects the customer and displays
their details in text boxes to the right of the list. The user must then
click a button to select that customer and move off the page to the main
database details. I would like to implement being able to double-click the
listview item and it have the same effect as single clicking and then
pressing the button.

My problem is that I can't get the double-click event to fire, the
single-click always gets in first??

How do I tell the control that if the two clicks are in close succession it
is a double-click not two single clicks??

I thought the system would go with the double-click if the clicks were
within the timeframe specified in the control panel for a double-click??
 
N

ng

Siv,
In the properties page of the listview control there is an item called
activation. Selected TwoClick, and then use the ItemActivate event to
do your thing.

T
 

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