Click here to Skip to main content
15,886,137 members
Home / Discussions / C#
   

C#

 
GeneralRe: Syntax Highlighting Editor Pin
Nnamdi Onyeyiri3-Feb-03 9:46
Nnamdi Onyeyiri3-Feb-03 9:46 
GeneralRe: Syntax Highlighting Editor Pin
leppie3-Feb-03 10:08
leppie3-Feb-03 10:08 
GeneralRe: Syntax Highlighting Editor Pin
Nnamdi Onyeyiri3-Feb-03 10:09
Nnamdi Onyeyiri3-Feb-03 10:09 
GeneralRe: Syntax Highlighting Editor Pin
David Stone3-Feb-03 19:40
sitebuilderDavid Stone3-Feb-03 19:40 
GeneralRe: Syntax Highlighting Editor Pin
Nnamdi Onyeyiri5-Feb-03 4:52
Nnamdi Onyeyiri5-Feb-03 4:52 
GeneralRe: Syntax Highlighting Editor Pin
Roger Alsing9-Feb-03 22:05
Roger Alsing9-Feb-03 22:05 
GeneralRe: Syntax Highlighting Editor Pin
3-Feb-03 9:18
suss3-Feb-03 9:18 
GeneralShort file name Pin
56789012343-Feb-03 3:14
56789012343-Feb-03 3:14 
I need a simple way to get short file name for display. For example, I have full file name C:\Dir1\Samples\Files\Doc\Figures.doc and maximum length 30, and result should be like this: C:\Dir1\...\Doc\Figures.doc.

string s = ShortFileName("C:\\Dir1\\Samples\\Files\\Doc\\Figures.doc");

// s = "C:\Dir1\...\Doc\Figures.doc"

string ShortFileName(string fullName, int maxLen)
{
// ???
}

GeneralRe: Short file name Pin
Richard Deeming3-Feb-03 3:42
mveRichard Deeming3-Feb-03 3:42 
GeneralRe: Short file name Pin
56789012343-Feb-03 20:25
56789012343-Feb-03 20:25 
GeneralC# and Data Blobs Pin
GrahamS3-Feb-03 2:22
GrahamS3-Feb-03 2:22 
GeneralRe: C# and Data Blobs Pin
John Fisher4-Feb-03 7:34
John Fisher4-Feb-03 7:34 
Generalcustom OpenDialog... Pin
Itanium2-Feb-03 21:46
Itanium2-Feb-03 21:46 
GeneralRe: custom OpenDialog... Pin
jtmtv182-Feb-03 22:33
jtmtv182-Feb-03 22:33 
GeneralRe: custom OpenDialog... Pin
Anonymous2-Feb-03 23:39
Anonymous2-Feb-03 23:39 
GeneralRe: custom OpenDialog... Pin
jtmtv183-Feb-03 9:24
jtmtv183-Feb-03 9:24 
GeneralRe: custom OpenDialog... Pin
Furty5-Feb-03 15:34
Furty5-Feb-03 15:34 
GeneralWMI counters Pin
swarupdas2-Feb-03 21:42
swarupdas2-Feb-03 21:42 
GeneralRe: WMI counters Pin
John Fisher4-Feb-03 7:35
John Fisher4-Feb-03 7:35 
GeneralRe: WMI counters Pin
swarupdas4-Feb-03 17:12
swarupdas4-Feb-03 17:12 
GeneralRe: WMI counters Pin
John Fisher5-Feb-03 3:17
John Fisher5-Feb-03 3:17 
QuestionSkinable Form with C#?? Pin
Q&A2-Feb-03 18:57
Q&A2-Feb-03 18:57 
AnswerRe: Skinable Form with C#?? Pin
Roger Alsing2-Feb-03 21:14
Roger Alsing2-Feb-03 21:14 
GeneralRe: Skinable Form with C#?? Pin
antoine@orchus-tech4-Feb-03 5:08
antoine@orchus-tech4-Feb-03 5:08 
GeneralSystem.ComponentModel.Container Pin
jtmtv182-Feb-03 18:28
jtmtv182-Feb-03 18:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.