"Tony Maresca" <to**@whereever.com> wrote in message
news:u2**************@TK2MSFTNGP09.phx.gbl...
Is there any framework function or code floating
around that someone knows of, that can take a long
path name and remove the middle parts to make it
fit in a given field of characters for display in my UI?
If you're just worried about displaying the shortened string (i.e. you don't
need to actually know which characters have been removed) then you could try
Graphics.DrawString, using a StringFormat object whose Trimming property is
set to StringTrimming.EllipsisPath.
Chris Jobson