app name (not filepath)

wake n bake

New member
Joined
Nov 24, 2005
Messages
1
Programming Experience
Beginner
how do i make it so that if i use the openfiledialog1 action that it will bring up the filepath in one txtbox and the name of the app in another txtbox eg. msnmsngr.exe?
 
I assume you mean after you close the openFileDialog and that the two textboxes are on a form that you designed.
You can use the System.IO.Path class. The System.IO.Path.GetDirectoryName function will return the "filepath" and the System.IO.Path.GetFileName function will return the filename and extension of the specified path string.
 
Back
Top