Top "Dialogresult" questions

DialogResult is returned by dialogs after dismissal.

How do I create a message box with "Yes", "No" choices and a DialogResult?

I want to make simple Yes/No choiced MessageBox, but I think it is nonsense to design a form for …

c# winforms dialogresult
Using DialogResult Correctly

In an answer to a recent question I had (Here), Hans Passant stated that I should set the DialogResult to …

c# winforms dialogresult
Can't set DialogResult in WPF

I show a WPF window using ShowDialog() from the calling window. The window opens and is modal as expected. However, …

c# wpf modal-dialog 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 …

c# modal-dialog overloading dialogresult
DialogResult.OK on SaveFileDialog not work

I try, when I press save in SaveFileDialog I do something. I trying fix but always something wrong. SaveFileDialog dlg2 = …

c# wpf dialog savefiledialog dialogresult
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 button dialogresult
Message box with “Yes”, “No” choices in C#?

I want to make a MessageBox confirmation. Here is the message box: DialogResult dialog = MessageBox.Show("Etes vous sûre …

c# winforms dialogresult
How to code for cancel button in OpenFileDialog box

Whenever I am canceling the OpenFileDialog box. It's giving an error path is empty. My OpenFileDialog box Is there any …

c# winforms visual-studio-2010 openfiledialog dialogresult
C# How to make async MessageBox that returns DialogResult?

My MessageBox is async, but how can I return DialogResult? Here is my code: class AsyncMessageBox { private delegate void ShowMessageBoxDelegate(…

c# winforms asynchronous messagebox dialogresult
User Control Buttons to Close a Dialog Box

I have created a User Control in my application that has a textbox and then 2 buttons on it. One button …

c# winforms user-controls dialogresult