Last File Opened 100 Points

Hey:)
Need some code to show me how to save the last file that was selected when browsed using a text box and i need the program to remember this. Like when you use a wordprocessor and it lists the last files opened, only i just need mine to list it in a text box the next time the program is ran. Which ever is easier, I ain't particular ! My program lists the browsed file in a textbox now once it is selected. I just need it to remember. Hope this is clear for everyone !
Thanks
ssi49
ssi49Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zhangjingCommented:
Try this:

Private Sub Form_Load()
    Text1.Text = GetSetting(appname:="MyApp", section:="Startup", Key:="File1")
    Text2.Text = GetSetting(appname:="MyApp", section:="Startup", Key:="File2")
    Text3.Text = GetSetting(appname:="MyApp", section:="Startup", Key:="File3")
    Text4.Text = GetSetting(appname:="MyApp", section:="Startup", Key:="File4")
End Sub

Of course, you need to use "SaveSetting" funtion to record the file name first.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ssi49Author Commented:
zhangjing,
Sorry i didn't get back with you sooner. My ISP had problems. Thank You for the code, I will view it later. I'm sure it will work by what i've seen here.
Thanks
ssi49
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.