>>>Take out ' thisform.AskToSave() = 2' and see whether that solves the problem
>>>
>>>First asking a question thisform.AskToSave() which involves another mouseclick seems a long time before NODEFAULT
>>>
>>>As to the question. I wonder
>>
>>Can you explain in details your suggestion? I do want to have a question otherwise what's the point?
>
>A commandButton with the code in the Click() will do
I'm thinking to try this
Check and question in when (return .t.) and NODEFAULT in MouseDown depending on the property. This will hopefully work.
UPDATE. No, didn't work :(
I don't want to use a command button.
If it's not broken, fix it until it is.
My Blog