OpenFileDialog doens't remember the user's settings

  • Thread starter Thread starter Kyle Jedrusiak
  • Start date Start date
K

Kyle Jedrusiak

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?
 
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?

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
http://www.n5ge.com
 
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
 
Back
Top