Solved

something in file menu..

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…

758 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

17 Experts available now in Live!

Get 1:1 Help Now