What I have displays the whole path to the file name and I want just the file name to appear in the list box, any ideas on how I could change this code to just display the file name and not the whole path to each file?? in stead of
I it just to show
here is what i have
'Display Files in user directory'
Public Sub user_directory_Load(ByVal lstFiles As System.Object, ByVal txtDirectory As System.Object) Handles MyBase.Load
Dim fil As String = "c:\Test\"
Dim dir As String = "c:\Test\"
If Not Directory.Exists(dir) Then
MessageBox.Show("Directory Does Not Exist")
If Not Directory.Exists(fil) Then
MessageBox.Show("Directory That holes the files Does Not Exist")