Results 1 to 3 of 3

Thread: Is this possable?

  1. #1

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362

    Question Is this possable?

    Does anyone know how to display the contents of a directory inside of a menu?

    I only want to show a max of 20 items if possable.

    a little code would help.

    TIA

  2. #2
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    You need to create 20 menu items and set their visibility to hidden.

    Then, use the File System Object's method GetFolder and assign to a Folder object.

    Then, for each the Files in Folder and when you reach 20, bail out.

    On each iteration, increment your index and update the menu item that corresponds to the index.

  3. #3

    Thread Starter
    Hyperactive Member New to VB 6's Avatar
    Join Date
    Apr 2002
    Posts
    362
    Is there an easier way to do this?

    I don't need to limit the #, I really just want to list dir contents so if the contents change the list changes too.

    Is there a way to do that?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width