By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,806 Members | 1,457 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,806 IT Pros & Developers. It's quick & easy.

Most Recent Document

P: n/a
How do you program in VB.NET to show the most recent used
document in a dropdown menu? I am referring to something
like in MS WORD or EXCEL where it shows the recent
document the user was working with.

Appreciate help.
Suresh
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Suresh Kumaran" <ku********@hotmail.com> wrote in news:077101c3722e
$0****************@phx.gbl:
How do you program in VB.NET to show the most recent used
document in a dropdown menu? I am referring to something
like in MS WORD or EXCEL where it shows the recent
document the user was working with.

Appreciate help.
Suresh


Most recent opened by your application I assume?

There is no "standard" framework way of accomplishing this. You must be
tracking it somewhere if it is being shown on your file menu. It is up to
you to persist that data somewhere.

You can save settings in the applications settings file, and xml file, the
registry, a database, or any other kind of file you want. Where would you
like it saved?

--
Michael Lang, MCSD

Jul 19 '05 #2

P: n/a
Michael,

Yes, its the most recent document my application opened.
What is the best way to store this information? If it is
any one of the method as you have described, how do I code
this? Do you have an example?

Thanks in advance

Suresh
-----Original Message-----
"Suresh Kumaran" <ku********@hotmail.com> wrote in news:077101c3722e$0****************@phx.gbl:
How do you program in VB.NET to show the most recent used document in a dropdown menu? I am referring to something like in MS WORD or EXCEL where it shows the recent
document the user was working with.

Appreciate help.
Suresh

Most recent opened by your application I assume?

There is no "standard" framework way of accomplishing

this. You must betracking it somewhere if it is being shown on your file menu. It is up toyou to persist that data somewhere.

You can save settings in the applications settings file, and xml file, theregistry, a database, or any other kind of file you want. Where would youlike it saved?

--
Michael Lang, MCSD

.

Jul 19 '05 #3

P: n/a
Meh,
Thanks for you reply. Do you have a web link where I can
look at "SuperPad" example from VB6?

Appreciate help.

Suresh
-----Original Message-----
Because we do not have the same enumeration functionality in dotNet that wehad in VB6 ...things such as menu items that were easy in VB6 are a littlemor difficult in .Net
We gained alot of functionality but we lost some also.
NEway
I think if you look at the "SuperPad" example from VB6 it might be able tobe re-engineered to be used in dotNet.
When you open a file add its name to an limited array say 3 items (could bea variable)
Save that array to a config file or the registry (although I think theregistry is considered bad form these days)
When your apps starts up read your array back into some recent file menuitems

I had to do this for a project I did a year or so ago I just re-engineeredthe above reference VB6 sample.

Hope this helps

meh
"Michael Lang" <ml@nospam.com> wrote in message
news:Xn********************************@207.46.24 8.16...
"Suresh Kumaran" <ku********@hotmail.com> wrote in news:077101c3722e $0****************@phx.gbl:
> How do you program in VB.NET to show the most recent used > document in a dropdown menu? I am referring to something > like in MS WORD or EXCEL where it shows the recent
> document the user was working with.
>
> Appreciate help.
>
>
> Suresh
>


Most recent opened by your application I assume?

There is no "standard" framework way of accomplishing this. You must be tracking it somewhere if it is being shown on your file menu. It is up to you to persist that data somewhere.

You can save settings in the applications settings file, and xml file, the registry, a database, or any other kind of file you want. Where would you like it saved?

--
Michael Lang, MCSD

.

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.