Results 1 to 1 of 1

Thread: [vb6] Listboxes and File Handling

  1. #1
    Little Brother


    Zachafer's Avatar
    Join Date
    Dec 2011
    Gender
    Posts
    1,206
    Thanks
    723
    Thanked 1,392 Times in 651 Posts


    Downloads
    81
    Uploads
    17
    Mentioned
    497 Post(s)
    Time Online
    21 d 17 h 32 m
    Avg. Time Online
    16 m
    Rep Power
    14

    [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 12:13 PM.

  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
  •