But if you put it in the Edit Box KeyPress then it will only disable the cancel button while you are IN the Edit Box. Or, of course, you can add code to explicitly click the cancel button while not deleting the Edit Box text.
>Nice solution, but be aware that this will also disable any cancel buttons on the form.