I have a windows form that has an OK and Cancel button. I have set
them as the form's AcceptButton and CancelButton respectively. Every
now and again when I run my program I find that they do not work when I
hit Enter and Esc. I go back to Visual Studio and I see that the
AcceptButton and CancelButton properties are no longer set. Any idea
what may be causing this?