private void MyCustomAlertHandler(IDialog dialog) { dialogMessage = dialog.Window.AllChildren[dialog.Window.AllChildren.Count - 1].Caption; Telerik.Manager.Desktop.KeyBoard.KeyPress(Keys.Enter); dialog.HandleCount++; }