Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim GetFiles As New OpenFileDialog
GetFiles.Multiselect = True
If GetFiles.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim FullFileNames As String() = GetFiles.FileNames
Dim JustFileNames As String() = GetFiles.SafeFileNames
ListBox1.Items.AddRange(FullFileNames) '<- or JustFileNames depending on what you want.
End If
Dim fdb As New FolderBrowserDialog
If fdb.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim FullFileNames As String() = Directory.GetFiles(fdb.SelectedPath)
If FullFileNames.Length > 0 Then
ListBox1.Items.AddRange(FullFileNames)
End If
End If
If FolderBrowserDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then
Dim FullFileNames As String() = Directory.GetFiles(FolderBrowserDialog1.SelectedPath)
If FullFileNames.Length > 0 Then
ListBox1.Items.AddRange(FullFileNames)
End If
End If
For Each strName As String In JustFileNames
Dim JustName As String = IO.Path.GetFileName(strName) 'or use IO.Path.GetFileNameWithoutExtension(strName)
ListBox1.Items.Add(JustName)
Next