Solved

something in file menu..

Posted on 2000-03-23
3
216 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

710 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