This is a migrated thread and some comments may be shown as answers.

detect if users presses no

2 Answers 42 Views
RateApplicationReminder
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jonathan
Top achievements
Rank 1
Jonathan asked on 31 Dec 2013, 04:47 PM
Is there a way to detect if the user presses "No" on the message prompt?

2 Answers, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 02 Jan 2014, 03:31 PM
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.
0
Jonathan
Top achievements
Rank 1
answered on 02 Jan 2014, 06:45 PM
that seems to have worked, thanks!
Tags
RateApplicationReminder
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Todor
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or