Short Explanation: I'm trying to create a pop-up Password prompt that is fired when the Maximize-window button is clicked.
Longer Explanation: I'm working on a GUI whose default dimensions hide sensitive controls from the user. Clicking on the Maximize-window button will reveal those controls, but I want to prevent easy access to casual users. Ideally I'd like a simple Password prompt to pop up when the Maximize-window button is clicked, which requires a password BEFORE the Maximize-window action takes place.
I've tried using a MessageBox and a separate form, but I can't seem to prevent the Maximize-window action from taking place before the pop-up appears. Any help would be greatly appreciated.