I'm using a WebBrowser control in my Visual C# (.net 2.0) application.
(我在Visual C#(.net 2.0)应用程序中使用了WebBrowser控件。)
Now I'd like to add a print button which shows the page setup dialog and then directly prints when the user presses the OK button or cancels the printing when the user presses the cancel button.
(现在,我想添加一个显示页面设置对话框的打印按钮,然后在用户按下“确定”按钮时直接打印,或者在用户按下“取消”按钮时取消打印。)
However WebBrowser.ShowPageSetupDialog doesn't return DialogResult, but just void.
(但是,WebBrowser.ShowPageSetupDialog不会返回DialogResult,而只是返回void。)
Is there something I've missed or any other way to know the users action?
(是否有我想念的东西或了解用户操作的其他方法?)
ask by Marc translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…