Last Updated: 19 Jan 2022 13:24 by ADMIN
Created on: 19 Jan 2022 06:34
Category: MessageBox
Type: Feature Request
RadMessageBox: add Autoclosing MessageBox or Dialog
it would look like a standard message or a dialog with only an automatic response (which would also be configured) after the timer expires
Attached Files:
1 comment
Dess | Tech Support Engineer, Principal
Posted on: 19 Jan 2022 13:24
Hello, Alex, 

I have approached your feature request. Currently, it is possible to achieve a similar functionality by using the following code snippet: 
        Timer timer;
        int autoCloseInterval = 5;
        int count = 0;

        private void radButton1_Click(object sender, EventArgs e)
            timer = new Timer();
            timer.Interval = 1000;
            timer.Tick += timer_Tick;
            RadMessageBox.Show("Warning", "Are you sure you want to quit?", MessageBoxButtons.YesNo, "Please don't quite yet!");

        private void timer_Tick(object sender, EventArgs e)
            RadMessageBox.Instance.Controls["radButton1"].Text = "Yes (" + (autoCloseInterval - count) + ")";
            if (count > autoCloseInterval)
I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Attached Files: