dialogresult

How to get dialog result from WebBrowser.ShowPageSetupDialog

I'm using a WebBrowser control in my Visual C# (.net 2.0) application. 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 j...

Where is Button.DialogResult in WPF?

In System.Windows.Forms.Button there is a property DialogResult, where is this property in the System.Windows.Controls.Button (WPF)? ...

messagebox with "Yes", "No" and dialogresult?

I want to make simple Y/N messagebox but I think it is nonsense to design a form for that. I thought I can use MessageBox, add buttons etc. It is simple but since there is no dialog result, I don't know how to retrieve the result? ...

when dialog result for form get return

hi i have on object (serverconnection from sqlserver Managament object ) i need send this object to other form to configure connection option and connect so object return but when i send this object to form2 how return it or when i use form.ShowDialog() when this return or how return from this ...

.NET Winform Custom Form - Needs to return DialogResult or somehow prevent asynchronous events

I have a form that calls a custom child form. The child form is basically a popup box that gets some user data. I want the Parent form to process information returned by the Child form. The problem is, the Parent form is calling the Child, and isn't waiting for a reply. Ideally, I'd like to make the Child form return a DialogResult. ...

Is it possible to overload the ShowDialog method for forms and return a different result?

EDIT: This method actually works great and I asked it then found the solution later. I added the correct call in the overloaded ShowDialog() method (it's not exacly an overload, or even an override, but it works just the same. My new question is the one at the bottom. I have a form in which you click one of three buttons. I have define...