Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
370
Disabling ENTER key on UltraMessageBoxManager
posted

Hi,

I'm trying to avoid users to press "ENTER" each time a UltraMessageBox appears. I need to force them to use the mouse to close the message box (or to click on any of the buttons) due to new company policy (sometimes people don't read the messages and just press "Enter" without knowing what they're doing).

How can I implement this?

  • 4618
    posted

    Hi rmeleiro,

    If you have any further questions regarding this behavior, please let me know.

    Sincerely,
    Chris K
    Developer Support Engineer
    Infragistics, Inc.
    www.infragistics.com/support

  • 4618
    Suggested Answer
    posted

    Hi rmeleiro,

    Although this behavior is not supported by the MessageBox, as neither the ultraMessageBoxManager1 or the .Net MessageBox extend event handlers for detecting input from the user and those available by the main form are not accessible as only the modal dialog will have focus when it is displayed;  it should be possible to handle this behavior by creating your own custom modal MessageBox from a discrete form.

    Using this approach, you will have access to the specific event handlers necessary for metering interactions with the MessageBox.

    If you have any further questions, please let me know.

    Sincerely,
    Chris K
    Developer Support Engineer
    Infragistics, Inc.
    www.infragistics.com/support