Allgemeine Diskussion PictureBox.Image.Location als FTP-Adresse

  • Montag, 19. März 2012 14:06
     
      Enthält Code

    Hoi Freunde,

    warum funktioniert folgender Code nur bei der ersten Auswahl nach Aufruf des Fensters und warum hängt sich nach der dritten Auswahl das Programm komplett weg ?

    Try
                Dim request As Net.FtpWebRequest = Net.FtpWebRequest.Create("ftp://" & FTPadresse & ":21/DCIM/")
                request.Method = Net.WebRequestMethods.Ftp.ListDirectory
                request.Credentials = New Net.NetworkCredential(Username, Passwortchen)
                Dim response As Net.FtpWebResponse = request.GetResponse()
                PictureBox2.ImageLocation = "ftp://" & Username & ":" & Passwortchen & "@" & FTPadresse & ":21/DCIM/" & DCIMbild 
    
    PictureBox2.Invalidate()
    
    Catch ex As Exception
         Throw ex
    End Try

    Der Profi unter euch ;-) sieht es doch bestmmt auf den 1. Blick...

    Doei

    Franz


    Be a good forum member - mark posts that contain the answers to your questions or those that are helpful


Alle Antworten