protected override void InitializeContents() { base.InitializeContents(); handler = new PrintDialogEventHandler(); handler.PrintDialogHandled += PrintDialogHandled; WebBrowser.Current.DialogWatcher.Add(handler); //WebBrowser.Current.AddDialogHandler(handler); }