onhide

hi!

I have a process going on and the user hits the “X” form button. How can I stop it from running?

Hi Rogel,

You can block the onHide by returning false.

function onHide() {
	if (_bIsProcessStillRunning) {
		return false; // block closing the dialog/moving away from this form
	}
	return true; // allow the closing of the dialog/moving away from this form
}

Hope this helps.

ROCLASI:
Hi Rogel,

You can block the onHide by returning false.

function onHide() {
if (_bIsProcessStillRunning) {
	return false; // block closing the dialog/moving away from this form
}
return true; // allow the closing of the dialog/moving away from this form

}




Hope this helps.

Thanks Robert!