detect if users presses no

3 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Feb 2013

    Posted 31 Dec 2013 Link to this post

    Is there a way to detect if the user presses "No" on the message prompt?
  2. Todor
    Admin
    Todor avatar
    778 posts

    Posted 02 Jan 2014 Link to this post

    Hello Jonathan,

    Thank you for your question.

    You can use the ReminderClosed event of RadRateApplicationReminder:
    reminder.ReminderClosed += this.OnReminderClosed;

    And provide an event handler like this:
    private void OnReminderClosed(object sender, ReminderClosedEventArgs e)
    {
        if (e.MessageBoxEventArgs.Result == DialogResult.Cancel)
        {
            // the user pressed Cancel.
        }
    }

    If you want to use this information to stop further reminders from occurring you can simply set SkipFurtherRemindersOnYesPressed to true. This way the reminders will stop after the first time the user presses yes and this way you wouldn't need to check about the pressed button manually.

    I hope this information helps.

    Regards,
    Todor
    Telerik
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
  3. DevCraft banner
  4. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Feb 2013

    Posted 02 Jan 2014 Link to this post

    that seems to have worked, thanks!
Back to Top