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 / February 2007

Tip: Looking for answers? Try searching our database.

OpenFileDialog doens't remember the user's settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kyle Jedrusiak - 06 Feb 2007 16:37 GMT
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 - 07 Feb 2007 01:17 GMT
>When programming in access I can make this call
>
[quoted text clipped - 11 lines]
>
>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
Alexander Petrov - 07 Feb 2007 10:00 GMT
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

> When programming in access I can make this call
>
[quoted text clipped - 11 lines]
>
> And I doing something wrong or missing something?

Rate this thread:







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.