473,587 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2727
"Suresh Kumaran" <ku********@hot mail.com> wrote in news:077101c372 2e
$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********@hot mail.com> wrote in news:077101c372 2e$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.co m> wrote in message
news:Xn******* *************** **********@207. 46.248.16...
"Suresh Kumaran" <ku********@hot mail.com> wrote in news:077101c372 2e $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
2586
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), username, date, and time field like this: 1234 williamstim 01AUG03 7:44:31 2348 williamstim 02AUG03 14:11:20
2
1525
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, but have gotten my code to work well, without errors on IE, Opera and netscapes recent builds. While testing, I found that it doesnt execute on...
4
383
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 with. Appreciate help. Suresh
3
1853
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 examhistory.coursekey, students.userid, students.firstname, students.lastname, examhistory.examdate,coursekeylookup.examdescription FROM students,...
4
2140
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 arbitrary number) and I need to get the latest file in the folder. Does anyone have a .NET solution to this problem. Any help would be greatly...
4
1848
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 blogs.Can anybody help me in this regard?Can it be a problem with xml? I am giving my code hereby document.write('<a href="/blog/blog.html"><img...
2
3281
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 records (N is 1) - most recent records 10-20 (N would be 2) - most recent records 10-30 (etc.)
4
3730
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 clicking on the file name in the File menu. Thist list is usually just above the typical Exit menu item. I take it there is no "automatic" way of...
3
1830
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 over I have to make do and cobble together a fix. DB is design to record customer reviews . It was built as 1 table with 1 line per review....
0
7923
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7852
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8349
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6629
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5719
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3882
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1455
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1192
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.