Click here to Skip to main content
15,889,931 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have small application with 1 form, in my form I added listbox()name:List1 by code(controls.add).I wrote event
VB
Private Sub List1_DblClick()
    mbDblClick = True
 End Sub


to handle event when user double click on Listbox.
But why doesn't it run?
How to I can handle event when user double click on ListBox(List1)

Can you help me?
Thanks.
Posted
Updated 20-Dec-10 17:09pm
v2
Comments
TweakBird 20-Dec-10 23:19pm    
Edited for code blocks

1 solution

Oh god, are you really using VB6? Make sure to use the withevents keyword when creating your listbox: example.
 
Share this answer
 
Comments
ngthtra 21-Dec-10 2:38am    
thakns very much I understood.

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