I am using Icon.ExtractAssociatedIcon to get the icon of a file , that a user selects, in an openfiledialog.
THe problem is if the user selects an icon from a network share then the filename property of the openfiledialog is in UNC format and this causes an exception in ExtractAssocaitedIcon
So my question is given a file specified as \server\share\filename , how do I get the icon
I am using .NET 2.0