I have a long path I\'d like to shorten for displaying on a form using the ellipsis character(s?).
I know there is the PathCompactPathEx Win32 API call, but I know t
Using the ModifyString flag in versions of .Net since (at least) version 3.5 exposes an ugly and potentially dangerous bug discussed here.
Hans Passant found the correct way to do this here.