Solved

something in file menu..

Posted on 2000-03-23
3
214 Views
Last Modified: 2010-05-02
If you look at file menu in VB, you will notice at the end, it will show you
what file you have opened before, so when you click on one of them, it
will open that project.

How do I do that in my own vb program ?
0
Comment
Question by:tanc02
3 Comments
 
LVL 1

Expert Comment

by:pclement
ID: 2650157
Here is an example for you that will do this:

http://www.vbaccelerator.com/codelib/filemru/filemru.htm
0
 
LVL 5

Accepted Solution

by:
Voodooman earned 10 total points
ID: 2650354
Add However many files you want to open as menu options.

i.e. Call then File1,File2,File3

and set them all to invisible

Now when you close a file. Set the File1 menu Item to visible

File1.visible=true

Set the Caption to the filename and path

File1.Caption = "C:\ExpertEpos.mdb"

Write the Caption as the first line of a text file.

When you open the program read the lines in the text file - (an ini file) and as you read in the lines make the menu items visible and set the captions to match.

Put Code behind the menu items to open the file using the menu caption string.

All you have to do is manage the ini/text file - this absolutely works!!

Good Luck Voodooman!
0
 
LVL 1

Author Comment

by:tanc02
ID: 2650450
good idea, I like it.
Thanks !
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question