Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 220
  • Last Modified:

something in file menu..

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
tanc02
Asked:
tanc02
1 Solution
 
pclementCommented:
Here is an example for you that will do this:

http://www.vbaccelerator.com/codelib/filemru/filemru.htm
0
 
VoodoomanCommented:
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
 
tanc02Author Commented:
good idea, I like it.
Thanks !
0

Featured Post

Independent Software Vendors: 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!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now