Hi, I'm using this to retrieve a file name from a path:
However, when I put it to use using something like this:Code:Dim fullPath As String = TextBox1.Text Dim fileName As String = IO.Path.GetFileName(fullPath)
I get the 'NullReferenceException' errorCode:IO.File.Copy(TextBox1.Text, ListBox1.SelectedItem.ToString + "PSP\THEME\" + fileName)Can somebody help me with this?
I'm sure it's just something I'm missing.




Can somebody help me with this? 
Reply With Quote