CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2001
    Location
    United Kingdom
    Posts
    15

    Deleting a file from a file list box

    I have a filelist box and a button, I want the user to select a file, then click the button and the file will be deleted. Preferably I would want it to be deleted permanently rather than put in the Recycle Bin. How would I do this?

    Jonathon.


  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: Deleting a file from a file list box

    Kill File1.FileName

    David Paulson


  3. #3
    Join Date
    Aug 2001
    Location
    United Kingdom
    Posts
    15

    Re: Deleting a file from a file list box

    Thanks

    Jonathon.


  4. #4
    Join Date
    Sep 2001
    Posts
    16

    Re: Deleting a file from a file list box

    Hi,
    U can use the Kill method to delete the file u require.
    Kill(File Path)

    Sunil


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

Featured