dialogresult Questions
4
Solved
I try, when I press save in SaveFileDialog I do something. I trying fix but always something wrong.
SaveFileDialog dlg2 = new SaveFileDialog();
dlg2.Filter = "xml | *.xml";
dlg2.DefaultExt = "xml...
Jollification asked 8/5, 2014 at 10:30
10
I show a WPF window using ShowDialog() from the calling window. The window opens and is modal as expected. However, in my OK and Cancel button's click events in the dialog window I set this.DialogR...
Eliott asked 22/5, 2009 at 16:18
11
Solved
I want to make simple Yes/No choiced MessageBox, but I think it is nonsense to design a form for that. I thought I could use MessageBox, add buttons, etc. to accomplish this. It is simple, but sinc...
Postal asked 14/6, 2010 at 11:30
1
I have an MVVM-Light based WPF application, with a dialog service (called WindowManager) that opens up dialog windows bound to pre-initiated dialog view-models, like this:
private enum ViewModelKi...
Goldarned asked 4/6, 2014 at 14:21
3
Solved
I can't find a solution for the following problem:
I open a Dialog with the WindowManager from caliburn micro:
public void UserNew()
{
this._windowManager.ShowDialog(new UserViewModel(this._wind...
Mariellemariellen asked 15/5, 2012 at 9:11
2
Solved
In an answer to a recent question I had (Here), Hans Passant stated that I should set the DialogResult to close my forms instead of form.Close() although I cannot seem to find out why?
If I've rea...
Sudan asked 30/5, 2013 at 22:2
4
Solved
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...
Consuelaconsuelo asked 21/9, 2010 at 21:43
6
Solved
I tried to use DialogResult to check an Messagebox's YesNoCancel. I'm using the following code which I don't see any problem with:
DialogResult dlgResult = MessageBox.Show(
"Save changes before c...
Paroicous asked 7/6, 2011 at 12:11
2
Solved
I have a custom made dialog winform. On it I have a label, textbox and 2 buttons (OK and Cancel). It also declares and defines overloaded execute methods for passing different parameter list.
Dial...
Joejoeann asked 1/11, 2011 at 19:17
3
Solved
I have a form Form1 from which I display Form2 as a modal form. From Form2 I do all sort of editing and deleting of different set of values which should be reflected in Form1 after closing Form2. S...
Jocosity asked 30/7, 2011 at 5:36
4
Solved
In System.Windows.Forms.Button there is a property DialogResult, where is this property in the System.Windows.Controls.Button (WPF)?
Greatest asked 18/11, 2009 at 21:55
5
Solved
Can anyone think of a good explanation for the fact that result of a dialog is a nullable bool in WPF? This has always baffled me. In WinForms it was an enum type and that made a lot more sense to ...
Lifework asked 12/6, 2009 at 15:17
1
© 2022 - 2024 — McMap. All rights reserved.