>Hi,
> Then, what should i put in when event?? If I put RETURN 0 or ingnore it in when event, cursor will appear when i click on it...
The problem is the WHEN method fires as soon as the control gets focus so the DblClick can never be recognized because of the RETURN 0 or RETURN .F.
If everything works correctly when the code is in the DblClick method except for where the cursor appears, then I would leave the code in DblClick because that is what you really want to happen before any code fires. At the end of the code, you could add 1 more line of code -- some_other_object.SetFocus()
Mark McCasland
Midlothian, TX USA