howto handle double-click on Listbox ?

  • Thread starter Thread starter cyrille
  • Start date Start date
C

cyrille

hello,

The is no double-click event for control in c#.
I would like to get different actions when click and double-click on a listbox.
Have we need to oeverride WndProc and manage WM_LBUTTONDBLCLK event ?

thanks
cyrille
 
well the listbox class has such an event..it inherits this from the control
class... and its very much possible to code for this event.

private void listBox1_DoubleClick(object sender, System.EventArgs e)
{

'Harish.
 

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

Back
Top