Click here to Skip to main content
15,901,284 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai.

In my Page.aspx page I am having 1 listbox and button .Now the list box will display all the folders in dtectory(C:\\) .Then I select any folder in Listbox And press button It will display Sub folder of selected folder.Instead of Clicking button I want to do that operation in ListBox Double click..,Is it Possible?How can I achieve this??

Thanks In Advance


Regards
Jithesh A
Posted

Easy! For that you can invoke the function on the event of Double Click. Just remove the event handler for Click event, and attach that handler to the Double click handler. This way, the event would trigger when the Double Click event takes place.

For more, read this: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.mousedoubleclick(v=vs.110).aspx[^]
 
Share this answer
 
Comments
jithesh a 3-Nov-14 3:06am    
Thanks for your reply,,,,
Afzaal Ahmad Zeeshan 3-Nov-14 4:00am    
If my answer worked for you, please mark it as answer.
 
Share this answer
 
Comments
jithesh a 3-Nov-14 3:11am    
Thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900