[Mono-bugs] [Bug 80885][Wis] New - SaveFileDialog does not change extension

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Feb 17 20:31: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=80885

--- shadow/80885	2007-02-17 20:31:21.000000000 -0500
+++ shadow/80885.tmp.22627	2007-02-17 20:31:21.000000000 -0500
@@ -0,0 +1,56 @@
+Bug#: 80885
+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: SaveFileDialog does not change extension
+
+To reproduce:
+
+ 1. Enter x to filename
+ 2. Select XML as filetype
+ 3. Press Save button.
+
+Observed: x.pdf
+ 
+Expected:  x.xml
+  
+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