Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. list boxes

list boxes

Scheduled Pinned Locked Moved Visual Basic
sysadminhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lister
    wrote on last edited by
    #1

    i have server client program working using one of the tutorials but i would like to be able to save the log that the server produces for everytime a client logs on i have managed to save and load from text boxes using: Dim hFile As Long Dim sFilename As String sFilename = "c:\log.txt" 'obtain the next free file handle from the 'system and and save the text box contents hFile = FreeFile Open sFilename For Output As #hFile Print #hFile, txtReceive.Text Close #hFile but i was wondering if there was a similar way to save all the items in a list box to a log and a way that it could be called back again! any help would be great! .: Lister :.

    S 1 Reply Last reply
    0
    • L lister

      i have server client program working using one of the tutorials but i would like to be able to save the log that the server produces for everytime a client logs on i have managed to save and load from text boxes using: Dim hFile As Long Dim sFilename As String sFilename = "c:\log.txt" 'obtain the next free file handle from the 'system and and save the text box contents hFile = FreeFile Open sFilename For Output As #hFile Print #hFile, txtReceive.Text Close #hFile but i was wondering if there was a similar way to save all the items in a list box to a log and a way that it could be called back again! any help would be great! .: Lister :.

      S Offline
      S Offline
      ScaleOvenStove
      wrote on last edited by
      #2

      it looks like you are using VB 6.0, you should try using the FileSystemObject Steve

      L 1 Reply Last reply
      0
      • S ScaleOvenStove

        it looks like you are using VB 6.0, you should try using the FileSystemObject Steve

        L Offline
        L Offline
        lister
        wrote on last edited by
        #3

        thanx steve but i dont really know much about FileSystemObject i had a look on msdn libraries to find out some stuff and found how to create a file and add text to it but not what ever was in the list box thanx for trying tho! .: Lister :.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups