tool window event for closing

2 posts, 0 answers
  1. Anjali
    Anjali avatar
    9 posts
    Member since:
    Jun 2012

    Posted 13 Sep 2012 Link to this post


    I have added a toolwindow in raddock. I have to perform some additional functionalities on click to close button ,Please let me know which event is fired when close button is clicked for tool window (in docked state and floating state both)

    Thanks In advance !!!


    Anjali Bansal
  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 17 Sep 2012 Link to this post

    Hello Anjali,

    Thank you for writing.

    You can use DockWindowClosing event for the desired purpose:
    void radDock_DockWindowClosing(object sender, DockWindowCancelEventArgs e)
        DialogResult res = MessageBox.Show("Are you sure you want to close this window", "My App", MessageBoxButtons.YesNo);
        if (res == System.Windows.Forms.DialogResult.No)
            e.Cancel = true;

    I hope this helps.

    Julian Benkov
    the Telerik team
    RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Back to Top