I have tried to use the $form.ShowModal() that I see others mentioned in the forums but it is not working. I am trying to prevent users from clicking anywhere and stay on the kix form until they click on yes or no

I have tried the OnLostFocus, although it is calling the function I created but users are still able to do otherthing unless I force a shutdown which MGMT does not like..

what am I doing wrong .. I would love to use the "ShowModal" if it exist just like in VB

Any help is appreciated

Thanks