Groups | Blog | Home
all groups > dotnet windows forms > february 2007 >

dotnet windows forms : OpenFileDialog doens't remember the user's settings


Kyle Jedrusiak
2/6/2007 11:37:32 AM
When programming in access I can make this call

dialogResult = Application.OpenFileDialog.Show() ' May not be the exactly
correct syntax

The user can manipulate the column sizes the sorting,etc.

When I call that that code again, the OpenFileDialog remembers the listing
type and the sort that the user selected.

When I do the same thing in .NET 2.0 using the Windows.Form.OpenFileDialog
object, it doens't remember the listing type and the sort that the user
selected.

And I doing something wrong or missing something?




Otis Mukinfus
2/6/2007 7:17:33 PM
On Tue, 6 Feb 2007 11:37:32 -0500, "Kyle Jedrusiak"
[quoted text, click to view]

I don't think the 2.0 OpenFileDialog has the same behavior as the one in Access.

What I would do if I wanted the behavior you see in the access dialog is save
the settings to the application settings(if they are even available in the
OpenFileDialog). I don't know if they are, so you will need to check that out.

Search for OpenFileDialog in the documentation to determine what settings are
available to you. I know the file type is available.

Good luck with your project,

Otis Mukinfus

http://www.otismukinfus.com
http://www.arltex.com
http://www.tomchilders.com
Alexander Petrov
2/7/2007 1:00:18 PM
Dialog components presented in our Dialog Workshop .NET product allow you to
set initial file
list view style programmatically. So, you can save it each time your dialog
closes and reset it back
when dialog opens. Hope it helps.

Please visit for details:

http://www.componentage.com


Best regards,
Alexander Petrov
www.componentage.com


[quoted text, click to view]

AddThis Social Bookmark Button