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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

IIS->Tomcat Redirect: multiple worker with default -