I agree with Frank. It would not be too difficult to create your own general form that handles this for you. Without going into the code, the form should do the following
1) You have the property to set the message that you want to show to the user.
2) Have a method for adding buttons, with two arguments, one for the button text and one for the result of the dialog
3) When the form is displayed, it should be in modal dialog mode, so that the rest of the application is inactive until one of the options is clicked.
So, to create Save As / Do not Save / Cancel, you would add 3 buttons in step 2, all with the corresponding button text and the result of the dialog.
Using the Flow layout, you should be able to display it correctly, regardless of message size or number of buttons.
source share