473,399 Members | 3,106 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

dottifiate

Does anyone have any code sample for how to do the dotifiation of a to long
filename. I would like to put the path of a filename in the caption of a
dialog but if it's to long the end will not be visible. I would like to have
the path changed as:
c:\a\very\long\path\that\is\not\possible\to\displa y.cs ->
c:\a\very\...\possible\to\display

Any ideas?

/SÅA
Nov 15 '05 #1
1 1275
Hi,

This code is awful, but might fit the bill.

http://www.tobinharris.com/downloads/StringUtil.cs.txt

Cheers,

Tobin

"SvenÅke Andersson" <sv****************@saabtech.se> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Does anyone have any code sample for how to do the dotifiation of a to long filename. I would like to put the path of a filename in the caption of a
dialog but if it's to long the end will not be visible. I would like to have the path changed as:
c:\a\very\long\path\that\is\not\possible\to\displa y.cs ->
c:\a\very\...\possible\to\display

Any ideas?

/SÅA

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.