473,387 Members | 1,611 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 2715
"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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.