Results 1 to 1 of 1

Thread: [vb6] Listboxes and File Handling

  1. #1
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m

    [vb6] Listboxes and File Handling

    That "Browse..." dialog you see in many programs is the Microsoft Common Dialog Control. To add this into your project, go to Project -> Components (CTRL+T) and scroll down to Microsoft Common Dialog Control.

    You can also create a Common Dialog Control without adding the component into your project, however this seems to fail on about half of users' computers.

    This code can load a listbox from a file (line by line), or save a listbox to a file (line by line).

    I have written both ways and put them into two separate modules.

    With component (highly recommended):


    No component:
    Last edited by Zachafer; 03-31-2012 at 11:13 AM.

  2. The Following User Says Thank You to Zachafer For This Useful Post:

    jojo (03-31-2012)

Posting Permissions

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