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.
 
Back
Top