Results 1 to 5 of 5

Thread: [Visual Basic 6] Text file won't load

  1. #1
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8

    [Visual Basic 6] Text file won't load



    I have a text file with a list of user names, and yet it won't load into my list box 'ListofUsernames'

  2. #2
    Banned
    Join Date
    Dec 2011
    Gender
    Location
    Kiwiland
    Posts
    264
    Thanks
    22
    Thanked 106 Times in 68 Posts


    Downloads
    22
    Uploads
    0
    Mentioned
    74 Post(s)
    Time Online
    N/A
    Avg. Time Online
    N/A
    Rep Power
    0
    I have a handy class I use for listboxes. Someone gave it to me long ago on SD.

    http://www.mediafire.com/?kdvfico5343uz36

    Add it to the project.
    Add the Microsoft Common Dialog Control Component 6.0. (Add it to the form and name it 'comDia')

    Add this code to the very top of your code.


    Add this code to your Form_Load


    And for loading and saving, use these, you can change them around a little bit.

  3. #3
    Dino Sherlockian
    Join Date
    Dec 2011
    Gender
    Location
    America
    Age
    18
    Posts
    844
    Thanks
    315
    Thanked 341 Times in 208 Posts


    Downloads
    34
    Uploads
    2
    Mentioned
    179 Post(s)
    Time Online
    1 d 16 h 55 m
    Avg. Time Online
    1 m
    Rep Power
    8
    @Josh

    Runtime error when the form loads.... should I make any special changes to this ?


    Like perhaps ?

  4. #4
    Banned
    Join Date
    Dec 2011
    Gender
    Location
    Kiwiland
    Posts
    264
    Thanks
    22
    Thanked 106 Times in 68 Posts


    Downloads
    22
    Uploads
    0
    Mentioned
    74 Post(s)
    Time Online
    N/A
    Avg. Time Online
    N/A
    Rep Power
    0
    Yea change 'yourlistbox' to whatever you name your listbox.

  5. #5
    Saiyan Race





    Infamous Joe's Avatar
    Join Date
    Dec 2011
    Gender
    Location
    Hyperbolic Time Chamber
    Age
    26
    Posts
    9,756
    Thanks
    2,780
    Thanked 16,242 Times in 4,238 Posts


    Downloads
    23
    Uploads
    36
    Mentioned
    2985 Post(s)
    Time Online
    293 d 21 h 44 m
    Avg. Time Online
    3 h 44 m
    Rep Power
    10
    Gamer IDs

    Gamertag: Infam0us Joe Steam ID: infamousjoe
    @Reemer where u at nigga

  6. The Following User Says Thank You to Infamous Joe For This Useful Post:

    Ryan~ (02-12-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
  •