What I need to do is the following:
- Check if the doc has expired and if so, bring up a messagebox and as soon as you click on OK, i want the form to close.
- Currently the message box part is working but I am unable to get the form to close after clicking on OK.
I have the same problem and looking for solution. Did you find anything helpful about this?
I ended up giving the Expiry message and after clicking on OK the form still opens with some Expiry text over the pages.