c# - Icon Extraction for Remote Files -
i need show list of file remote server. fetch details of remote server using self hosted web service. i.e. fetch remote server file name , full path json string , show information in treeview [wpf]. need show icons of these files. think can use icon within client desktop application , found 2 solution
http://www.codeproject.com/articles/2532/obtaining-and-managing-file-and-folder-icons-using#_rating
and
wpf's
system.drawing.icon.extractassociatedicon
however love solution later part doesn't work given file name[i.e. file should present in system, not case me]. try run above code's sample, , icon shown not or clean. so, there better way extract/get associated file icon extension in c#, wpf.
thanks.
i search more , found codeproject's article suggested way of extracting icon. though still experimenting , in last 2 hours not able show icon in treeview though object seems filled correctly me.
Comments
Post a Comment