c# - Check the type of file clicked in a listbox -
how can check file type of object in listbox?
i'm returning list of strings online server , wanting have event gets fired when click on item has .folder file type @ end.
i've tried looking can't find anything.
can please provide link or sample code can achieve achieve.
you include fileinfo assembly , use fileinfo.extension.
fileinfo finfo = new fileinfo(filename); string filename = finfo.extension
Comments
Post a Comment