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

C#

 
GeneralRe: How to add a ScrollBar where there is none? Pin
Xmen Real 26-Feb-09 2:49
professional Xmen Real 26-Feb-09 2:49 
GeneralRe: How to add a ScrollBar where there is none? [modified] Pin
Megidolaon26-Feb-09 20:49
Megidolaon26-Feb-09 20:49 
GeneralRe: How to add a ScrollBar where there is none? Pin
Xmen Real 27-Feb-09 1:37
professional Xmen Real 27-Feb-09 1:37 
GeneralRe: How to add a ScrollBar where there is none? [modified] Pin
Megidolaon1-Mar-09 20:30
Megidolaon1-Mar-09 20:30 
GeneralRe: How to add a ScrollBar where there is none? Pin
Xmen Real 2-Mar-09 5:55
professional Xmen Real 2-Mar-09 5:55 
GeneralRe: How to add a ScrollBar where there is none? Pin
Megidolaon2-Mar-09 20:24
Megidolaon2-Mar-09 20:24 
AnswerRe: How to add a ScrollBar where there is none? Pin
Megidolaon6-Mar-09 1:11
Megidolaon6-Mar-09 1:11 
QuestionHow to Loop through this Arraylist Pin
Vimalsoft(Pty) Ltd25-Feb-09 3:03
professionalVimalsoft(Pty) Ltd25-Feb-09 3:03 
AnswerRe: How to Loop through this Arraylist Pin
Colin Angus Mackay25-Feb-09 3:14
Colin Angus Mackay25-Feb-09 3:14 
GeneralRe: How to Loop through this Arraylist Pin
Vimalsoft(Pty) Ltd25-Feb-09 3:29
professionalVimalsoft(Pty) Ltd25-Feb-09 3:29 
AnswerRe: How to Loop through this Arraylist Pin
PIEBALDconsult25-Feb-09 3:54
mvePIEBALDconsult25-Feb-09 3:54 
GeneralRe: How to Loop through this Arraylist Pin
Vimalsoft(Pty) Ltd25-Feb-09 4:05
professionalVimalsoft(Pty) Ltd25-Feb-09 4:05 
GeneralRe: How to Loop through this Arraylist Pin
PIEBALDconsult25-Feb-09 6:51
mvePIEBALDconsult25-Feb-09 6:51 
QuestionChallenge manipulating combobox selectedvalue and selectedvaluechanged Pin
highjo25-Feb-09 2:44
highjo25-Feb-09 2:44 
AnswerRe: Challenge manipulating combobox selectedvalue and selectedvaluechanged Pin
Cracked-Down25-Feb-09 3:00
Cracked-Down25-Feb-09 3:00 
AnswerRe: Challenge manipulating combobox selectedvalue and selectedvaluechanged Pin
Xmen Real 25-Feb-09 3:14
professional Xmen Real 25-Feb-09 3:14 
AnswerRe: Challenge manipulating combobox selectedvalue and selectedvaluechanged Pin
highjo25-Feb-09 7:39
highjo25-Feb-09 7:39 
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

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.