9 Replies Latest reply on Sep 2, 2013 6:07 AM by Artem Taturevych

    Avoid Property Manager close

    Jorn Bjarning



      I am writing an add-in using Property Manager Pages. When the user presses OK I would like to validate that the entries and selections he made. If they are not OK a message must be given and the Property Manager should NOT close. I can built in validation in the OnClose event - no problem. The question is - how can I avoid that the Property Manager closes afterwards?


      You might think - just validate the entries and selections right after the user has entered something and simply avoid making the validation at the OnClose event. Cannot. The user must browse to select a folder. but if he hasn't browsed I can not validate the chosen folder. So when he presses OK to complete the entire operation I need to verify if he actually selected a folder or not.


      Any ideas?


      Best regards,