hi everyone. I want to delay the click event in a vsFlexgrid so that the double click event will run 1st. I used a timer for the delay in the click event and managed to get the value of the double click speed in the windows library for the timer interval. however i still cant make it work the way I want to. Its still running the click event rather than running the double click event 1st. hope you can enlighten me with this. here's my code.
''General Declaration Declare Function GetDoubleClickTime Lib "user32" () As Long ''Form Declaration Private Sub Form_Load() clickSpeed% = GetDoubleClickTime Timer1.Enabled = False Timer1.Interval = clickSpeed% End Sub Private Sub FlexGrid1_Click() Timer1.Enabled = True End Sub ''It's not passing this event Private Sub FlexGrid1_dblClick() Timer1.Enabled = False MsgBox "double click" End Sub Private Sub Timer1.Timer() Timer1.Enabled = False MsgBox "single click" End Sub