The AlertControl.ButtonClick and AlertControl.ButtonDownChanged events fire when a custom button within an alert window is clicked. While handling these events, do not use the Button property to identify the button clicked. Instead, use the ButtonName property.