' FileChooser Init
fc.Initialize
fc.Title="Browse and select a file"
fc.SetExtensionFilter("Text files", Array As String ("*.txt"))
fc.InitialFileName = ""
fc.InitialDirectory = "C:\"
' Shows FileChooser
Dim filename As String = fc.ShowOpen(MainForm)
' Store Path & Filename only if a file was selected
If File.GetName(filename) <> "" Then
Log("Path: " & File.GetFileParent(filename)) ' Path
Log("Filename: " & File.GetName(filename)) ' Filename
End If