[Mono-bugs] [Bug 80887][Wis] New - File list not refreshed in SaveFileDialog

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Feb 17 20:33:21 EST 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by kobruleht2 at hot.ee.

http://bugzilla.ximian.com/show_bug.cgi?id=80887

--- shadow/80887	2007-02-17 20:33:21.000000000 -0500
+++ shadow/80887.tmp.22671	2007-02-17 20:33:21.000000000 -0500
@@ -0,0 +1,61 @@
+Bug#: 80887
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: kobruleht2 at hot.ee               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: File list not refreshed in SaveFileDialog
+
+To reproduce:
+
+1. Create some pdf and some xml files in directory offered by 
+SaveFileDialog
+
+2. Run code
+
+3. Change filetype to xml and to pdf back
+
+
+Observed: file list is not refreshed
+
+Expected: file list should show files corresponding to file extension
+
+
+Code:
+ 
+using System.Windows.Forms;
+using System;
+
+static class Program {
+	[STAThread]
+	static void Main() {
+		SaveFileDialog sfd = new SaveFileDialog();
+		sfd.Filter =
+			"PDF|*.pdf|" +
+			"XML|*.xml";
+		sfd.FilterIndex = 1;
+
+		sfd.FileName = "*.pdf";
+
+		if (sfd.ShowDialog() != DialogResult.OK)
+			return;
+		MessageBox.Show(sfd.FileName.Substring(
+				sfd.FileName.Length - 10));
+	}
+}
+
+Environment:
+
+MONO 1.2.3 preview
+Windows XP
+Visual C# Express 2005


More information about the mono-bugs mailing list