11 writes to FileName
PresentationUI (1)
MS\Internal\Documents\Application\FilePresentation.cs (1)
47save.FileName = fileToken.Location.LocalPath;
System.Windows.Forms.Design (2)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
108FileName = SR.BinaryEditorFileName,
System\Windows\Forms\Design\FileNameEditor.cs (1)
32_openFileDialog.FileName = stringValue;
System.Windows.Forms.Tests (5)
System\Windows\Forms\FileDialogTests.cs (5)
274FileName = value 291dialog.FileName = value; 593FileName = "FileName", 695FileName = "FileName", 781yield return new object[] { new SubFileDialog { Title = "Title", FileName = "FileName" }, "System.Windows.Forms.Tests.FileDialogTests+SubFileDialog: Title: Title, FileName: FileName" };
System.Windows.Forms.UI.IntegrationTests (1)
OpenFileDialogTests.cs (1)
43dialog.FileName = tempFile.Path;
WinFormsControlsTest (2)
Dialogs.Designer.cs (1)
137this.openFileDialog1.FileName = "openFileDialog1";
ListViewTest.Designer.cs (1)
135this.openFileDialog1.FileName = "openFileDialog1";
20 references to FileName
PresentationUI (1)
MS\Internal\Documents\Application\FilePresentation.cs (1)
78string filePath = save.FileName;
System.Windows.Forms (8)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (3)
16[DefaultProperty(nameof(FileName))] 745FileName.CopyTo(_charBuffer); 803public override string ToString() => $"{base.ToString()}: Title: {Title}, FileName: {FileName}";
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.Vista.cs (1)
60dialog->SetFileName(FileName);
System\Windows\Forms\Dialogs\CommonDialogs\OpenFileDialog.cs (3)
93/// attempted is specified by the <see cref="FileDialog.FileName"/> property. 124throw new InvalidOperationException(string.Format(SR.FileDialogInvalidFileName, FileName)); 180public string SafeFileName => Path.GetFileName(FileName) ?? string.Empty;
System\Windows\Forms\Dialogs\CommonDialogs\SaveFileDialog.cs (1)
150throw new InvalidOperationException(string.Format(SR.FileDialogInvalidFileName, FileName));
System.Windows.Forms.Design (4)
System\ComponentModel\Design\BinaryEditor.BinaryUI.cs (1)
116_byteViewer.SaveToFile(sfd.FileName);
System\Drawing\Design\IconEditor.cs (1)
78using FileStream stream = new(_fileDialog.FileName, FileMode.Open, FileAccess.Read, FileShare.Read);
System\Drawing\Design\ImageEditor.cs (1)
107using FileStream stream = new(_fileDialog.FileName, FileMode.Open, FileAccess.Read, FileShare.Read);
System\Windows\Forms\Design\FileNameEditor.cs (1)
37return _openFileDialog.FileName;
System.Windows.Forms.Tests (5)
System\Windows\Forms\FileDialogTests.cs (5)
29Assert.Empty(dialog.FileName); 67Assert.Empty(dialog.FileName); 276Assert.Equal(value ?? string.Empty, dialog.FileName); 292Assert.Equal(value ?? string.Empty, dialog.FileName); 623Assert.Empty(dialog.FileName);
System.Windows.Forms.UI.IntegrationTests (1)
OpenFileDialogTests.cs (1)
45Assert.Equal(tempFile.Path, dialog.FileName);
WinFormsControlsTest (1)
ListViewTest.cs (1)
279string file = openFileDialog1.FileName;