Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27349

OpenFileDialog and ftp

$
0
0
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?

Viewing all articles
Browse latest Browse all 27349

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>