문제

When closing an application on close button (FormClose handler is called), 
there is a dialog if user is sure that he wants to close the application. 
If the result of the dialog is mrCancel, then I try to set the ModalResult
of a main form to mrNone like I do with other forms, but even though, the 
application still closes.

What is the solution?

Cheers.

도움이 되었습니까?

해결책

양식에서 FormCloseQuery, 세트 CanClose 거짓.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top