I want to add a confirm dialog when a user tries do close a dockwindow, I'm using the raddock as a mdicontainer, I use the DockWindowClosing event:
The problem is that when I call RadMessageBox.Show, all the contents of the radwindow disappear.
How can I fix this so that I can ask for confirmation when closing a raddock window?
Thanks in advance.
private void radDock1_DockWindowClosing(object sender, DockWindowCancelEventArgs e) { if (RadMessageBox.Show("Are you sure", "Confirm", MessageBoxButtons.YesNo, RadMessageIcon.Question, MessageBoxDefaultButton.Button1) == System.Windows.Forms.DialogResult.No) { e.Cancel = true; } }The problem is that when I call RadMessageBox.Show, all the contents of the radwindow disappear.
How can I fix this so that I can ask for confirmation when closing a raddock window?
Thanks in advance.