if what you are saying is when you open a file in c:\ dir\dir\dir\file.txt you want the title for the app to be file.txt not c:\ dir\dir\dir\file.txt:
Dim filepath As New String = OpenFileDialog1.FileName
If filepath.contains ("/") then me.text = filepath.substring(filepath.lastindexof("/")+1) ElseIffilepath.contains ("\") then me.text = filepath.substring(filepath.lastindexof("\")+1) EndIf
I am so proud of being able to answer all these questions at the age of 12