472,995 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,995 software developers and data experts.

Most Recent Document

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
3 2691
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Nova's Taylor | last post by:
Hi folks, I am a newbie to Python and am hoping that someone can get me started on a log parser that I am trying to write. The log is an ASCII file that contains a process identifier (PID),...
2
by: ASallade | last post by:
Hello, I've scoured my books and the web, but am still daunted, hopefully some of the users in this newsgroup will have advice for my problem. I am not an experienced javascript programmer,...
4
by: Suresh Kumaran | last post by:
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...
3
by: manny | last post by:
Problem: how to have query show only most recent records. This query shows all exams in 2005 for particular individual (grades not shown to avoid embarrassing John Slacker!): SELECT...
4
by: Lee | last post by:
I have an application where I need to find the most recent file placed in a folder. For example, my users periodically place an image file with the format "ImageXXXX.jpg" (where XXXX is some...
4
by: nishac | last post by:
Hi friends Anybody has worked with the Rss reader flash file to display the blog posts? My code was working well until I upgraded the flash as notified by Adobe.Now my rss not showing any...
2
by: robert.waters | last post by:
I need to perform the following: - select the most recent X number of records in a table (there is a timestamp field) - select the Nth occurrence of X number of records ex: - most recent 10...
4
by: zacks | last post by:
Most applications whose purpose is to work with various types of files implement a "Most Recent Files" list, where the last, say, four files accessed by the application can quickly be re-opened by...
3
by: AnthonyT | last post by:
Hi All I have a major problem with an access query and I am near the end of my tether! I have taken over a project with a badly built access database and as resources are not available to start...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.