Friday, March 16, 2012

Listbox double click?

Hi Everyone -

I have a databound listbox and i would like to utilize a double click
on the control -

the double click event will populate another field on the form...

but i cannot find the double click event - does it exist?

thanks
tonyThis example uses the DoubleClick event of a ListBox to load text files listed in the ListBox into a TextBox control:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassdoubleclicktopic.asp

Does this help?
I don't think that is available.

You could try something like this though. When the user clicks, record the time, check the last time the time was set (if it is set) , if the difference is "short" enough, send them on to the function you want to call.

Seems like it'll work...
You'll have to add the ondblclick attribute.
Hello -

Is there a sample bit 'o code to help with this procedure??

in vb.net

thanks
tony
I had posted this example - uses the DoubleClick event of a ListBox to load text files listed in the ListBox into a TextBox control:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformscontrolclassdoubleclicktopic.asp



Link tags added by moderator.

0 comments:

Post a Comment