Solved

something in file menu..

Posted on 2000-03-23
3
213 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now