And if you want those events pertaining to the button specifically, as opposed to the main top level Form/Window/Dialog, then you likely need to subclass the button control to get access to its Window Procedure, which is different from your top level Form's Window Procedure.