Results 1 to 3 of 3

Thread: Why Won't This Work?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275

    Why Won't This Work?

    Code:
                    Dim file As String = OpenFileDialog1.ShowDialog()
                    Kill(file)
                    ListBox1.Items.Add(" File Del - " & file
    why wont that work?

  2. #2
    Member
    Join Date
    Dec 2002
    Location
    NY, USA
    Posts
    52
    Dim file As String = OpenFileDialog1.ShowDialog()
    Kill(file)
    ListBox1.Items.Add(" File Del - " & file

    1.Change the line
    Dim file As String = OpenFileDialog1.ShowDialog()

    to

    Dim file As String = OpenFileDialog1.FileName.ToString


    2 in the line
    ListBox1.Items.Add(" File Del - " & file

    add closing parenthesis

    ListBox1.Items.Add(" File Del - " & file )
    Iouri Boutchkine

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    Toronto, Ontario, Canada
    Posts
    275
    that bracket thing was just me being sloppy on the forum

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