Click here to Skip to main content
15,867,308 members
Home / Discussions / C#
   

C#

 
GeneralRe: Challenge manipulating combobox selectedvalue and selectedvaluechanged Pin
Cracked-Down25-Feb-09 17:55
Cracked-Down25-Feb-09 17:55 
QuestionHow to populate a CheckBox list from a based on a table in a database? Pin
Balagurunathan S25-Feb-09 2:33
Balagurunathan S25-Feb-09 2:33 
AnswerRe: How to populate a CheckBox list from a based on a table in a database? Pin
Wendelius25-Feb-09 8:16
mentorWendelius25-Feb-09 8:16 
QuestionMake pdf from cristal report, How ? Pin
E_Gold25-Feb-09 2:13
E_Gold25-Feb-09 2:13 
AnswerRe: Make pdf from cristal report, How ? Pin
Wendelius25-Feb-09 8:12
mentorWendelius25-Feb-09 8:12 
QuestionDisplaying a very long folder path Pin
Dewald25-Feb-09 1:59
Dewald25-Feb-09 1:59 
AnswerRe: Displaying a very long folder path Pin
benjymous25-Feb-09 2:15
benjymous25-Feb-09 2:15 
AnswerRe: Displaying a very long folder path Pin
moon_stick25-Feb-09 3:32
moon_stick25-Feb-09 3:32 
Only took me 10 minutes to knock this together - close enough?

<br />
        private static string TruncatePath(string path, int chars)<br />
        {<br />
            if (path.Length < chars)<br />
                return path;<br />
            string drive = path.Substring(0, path.IndexOf('\\') + 1);<br />
            string fileName = path.Substring(path.LastIndexOf('\\'));<br />
            if ((fileName.Length + drive.Length) > chars)<br />
                return drive + "..." + fileName.Substring((fileName.Length + drive.Length) -(chars + 3));<br />
            else<br />
            {<br />
                return drive + path.Substring(drive.Length, chars - (drive.Length + fileName.Length)) + "..." + fileName;<br />
            }          <br />
        }<br />


It definitely isn't definatley

GeneralRe: Displaying a very long folder path Pin
Dewald26-Feb-09 0:36
Dewald26-Feb-09 0:36 
QuestionMicrosoft Report Viewer Pin
mehrdadc4825-Feb-09 1:22
mehrdadc4825-Feb-09 1:22 
QuestionWhat do I need? Pin
staticv25-Feb-09 1:03
staticv25-Feb-09 1:03 
AnswerRe: What do I need? Pin
Xmen Real 25-Feb-09 1:21
professional Xmen Real 25-Feb-09 1:21 
GeneralRe: What do I need? [modified] Pin
staticv25-Feb-09 1:36
staticv25-Feb-09 1:36 
GeneralRe: What do I need? Pin
Xmen Real 25-Feb-09 1:49
professional Xmen Real 25-Feb-09 1:49 
GeneralRe: What do I need? Pin
staticv25-Feb-09 1:51
staticv25-Feb-09 1:51 
GeneralRe: What do I need? Pin
Xmen Real 25-Feb-09 2:33
professional Xmen Real 25-Feb-09 2:33 
AnswerRe: What do I need? Pin
ABitSmart25-Feb-09 3:15
ABitSmart25-Feb-09 3:15 
GeneralRe: What do I need? Pin
staticv25-Feb-09 3:35
staticv25-Feb-09 3:35 
GeneralRe: What do I need? Pin
ABitSmart25-Feb-09 3:52
ABitSmart25-Feb-09 3:52 
Question[Message Deleted] Pin
Ramkithepower25-Feb-09 0:57
Ramkithepower25-Feb-09 0:57 
AnswerRe: DTS Package and C# Pin
Xmen Real 25-Feb-09 1:02
professional Xmen Real 25-Feb-09 1:02 
GeneralRe: DTS Package and C# Pin
Ramkithepower25-Feb-09 1:18
Ramkithepower25-Feb-09 1:18 
QuestionUltraWinGrid Grouping Pin
Zeyad Jalil25-Feb-09 0:18
professionalZeyad Jalil25-Feb-09 0:18 
AnswerRe: UltraWinGrid Grouping Pin
Xmen Real 25-Feb-09 0:24
professional Xmen Real 25-Feb-09 0:24 
GeneralRe: UltraWinGrid Grouping C# Code Pin
Zeyad Jalil25-Feb-09 0:46
professionalZeyad Jalil25-Feb-09 0:46 

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.