Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / July 2006

Tip: Looking for answers? Try searching our database.

Bug in SaveFileDialog

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
picander77@yahoo.de - 09 Jul 2006 18:02 GMT
Hello there,

I found a bug using SaveFileDialog and I was not able to find any
similar issue on the web.
This seems to apply to any .NET Applications using SaveFileDialog.

To perform the bug:
1. Open a SaveFileDialog and save any File, e.g. TestDocument0.txt:
This should create a document named TestDocument0.txt
2. Call once again the SaveFileDialog, select the TestDocument0.txt you
created in the File Window: The name of the File appears in the Text
Box, left of the "Open" Button. (Notice, the Selected File is still
grayed in the File Window)
3. Rename the Text in this Text Box, e.g. TestDocument1.txt: (Notice,
the Selected File is still grayed in the File Window)
4. Click in the File Window, but not on a folder or a file. The
previously selected File is not grayed anymore, the focus is set on
nothing.
5. Press the "Save" Button, you will get the following Waning:
"File TestDocument0.txt already exists. Do you want to replace it"
The error is obvious, it should save my file as TestDocument1.txt, and
not TestDocument0.txt, as it appears on the Text Box.

Could you reproduce such strange behaviour?
Thanks for your help

Picander
Chris Jobson - 09 Jul 2006 19:22 GMT
> Hello there,
>
[quoted text clipped - 21 lines]
> Could you reproduce such strange behaviour?
> Thanks for your help

It think it's an issue in the underlying Windows standard dialog and nothing
to do with .NET - you can reproduce it by saving a text file from Notepad.
I've never noticed it before, but since it depends on your step 4, which is
a fairly pointless thing to do (though I can accept it might happen
accidentally), that's not surprising :-)

Chris
picander77@yahoo.de - 10 Jul 2006 10:59 GMT
Hello Chris,

You are right, even the notepad is affected by this bug. I think we
just have to live with it.
Thanks for your help.

If somebody has another suggestion though...

Picander

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.