Custom Dialog Handler
If for whatever reason you decide that you don't like the way the dialog is being handled or want to perform extra tasks before handling the dialog, you can simply craft your own dialog handling code and then ask the dialog to call your code instead of its dialog handling code. Here is an example:
To compile the above code include the following using:
using ArtOfTest.WebAii.Win32.Dialogs;