Hello,
I try to browse and select files on a ftp server through openfiledialog.
I have the following code:
OpenFileDialog1.InitialDirectory = "ftp://username:password@host"
OpenFileDialog1.FileName = "Open A File..."
OpenFileDialog1.Multiselect = False
OpenFileDialog1.Filter = "All Files|*.*"
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim sName As String = OpenFileDialog1.SafeFileName
txtbox_addproduct_foto1.Text = OpenFileDialog1.FileName
End If
This shows just an empty folder.
Is there an other way?
I try to browse and select files on a ftp server through openfiledialog.
I have the following code:
OpenFileDialog1.InitialDirectory = "ftp://username:password@host"
OpenFileDialog1.FileName = "Open A File..."
OpenFileDialog1.Multiselect = False
OpenFileDialog1.Filter = "All Files|*.*"
If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim sName As String = OpenFileDialog1.SafeFileName
txtbox_addproduct_foto1.Text = OpenFileDialog1.FileName
End If
This shows just an empty folder.
Is there an other way?