QUOTE(bellaelysium @ 22 Jul, 2008 - 04:48 AM)

so by adding this :
CODE
fullpath = System.IO.Path.GetFullPath(selectedfile)
It will be alright right?
Cos it will give full path of filenames.
Personally I think you could hit problems.
Say you have three entries in the list box which are
c:\setup
c:\setup
c:\setup
These are setup.bmp, setup.exe and setup.inf respectively.
Thats all good - until you click one of them. The user wants to run setup.exe. Firstly he doesn't know which one that is. You could make the assumption it would be the second one as the chances are it would be alphabetic. But when you run the code:
CODE
fullpath = System.IO.Path.GetFullPath(selectedfile)
It could return any of the three files mentioned.
Do you get what I mean it's kind of hard to explain.
Danny