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

C#

 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 1:24
King Julien26-Mar-09 1:24 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 1:32
mrithula826-Mar-09 1:32 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 1:56
King Julien26-Mar-09 1:56 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 5:59
mrithula826-Mar-09 5:59 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 19:00
mrithula826-Mar-09 19:00 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 19:22
King Julien26-Mar-09 19:22 
GeneralRe: ListView in C# Pin
mrithula829-Mar-09 0:51
mrithula829-Mar-09 0:51 
AnswerRe: ListView in C# [modified] Pin
Xmen Real 24-Mar-09 20:35
professional Xmen Real 24-Mar-09 20:35 
I use this code to get all files from a folder or drive

public static string[] GetFilesPaths(string directory)
{
    List<string> filesPaths = new List<string>();
    GetDirectories(directory, filesPaths);
    return filesPaths.ToArray();
}
static void GetDirectories(string dir, List<string> filesPaths)
{
    filesPaths.AddRange(Directory.GetFiles(dir));
    string[] subdirectoryEntries = Directory.GetDirectories(dir);
    foreach (string subdirectory in subdirectoryEntries)
        GetDirectories(subdirectory, filesPaths);
}</string></string></string>


you can get string[] and then you can add 'em in ListView...ListView is slow BTW, use DataGridView instead.



TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i’TV.C\y<pŠjxsg-b$f4ia>

-----------------------------------------------
128 bit encrypted signature, crack if you can

modified on Wednesday, March 25, 2009 3:13 AM

QuestionRe: ListView in C# Pin
0x3c024-Mar-09 21:08
0x3c024-Mar-09 21:08 
AnswerRe: ListView in C# Pin
Xmen Real 24-Mar-09 21:12
professional Xmen Real 24-Mar-09 21:12 
QuestionI have this error (Specified cast is not valid.) Pin
malkan Rahim Nazari24-Mar-09 19:45
malkan Rahim Nazari24-Mar-09 19:45 
AnswerRe: I have this error (Specified cast is not valid.) Pin
Christian Graus24-Mar-09 20:26
protectorChristian Graus24-Mar-09 20:26 
GeneralRe: I have this error (Specified cast is not valid.) [modified] Pin
malkan Rahim Nazari24-Mar-09 22:26
malkan Rahim Nazari24-Mar-09 22:26 
GeneralRe: I have this error (Specified cast is not valid.) Pin
Luc Pattyn25-Mar-09 3:21
sitebuilderLuc Pattyn25-Mar-09 3:21 
QuestionProblem with connecting windows service through sockets Pin
lnmca24-Mar-09 18:54
lnmca24-Mar-09 18:54 
AnswerRe: Problem with connecting windows service through sockets Pin
Nicholas Butler25-Mar-09 0:00
sitebuilderNicholas Butler25-Mar-09 0:00 
GeneralRe: Problem with connecting windows service through sockets Pin
lnmca25-Mar-09 2:56
lnmca25-Mar-09 2:56 
QuestionError with nhunspell Pin
sagun shrestha24-Mar-09 18:48
sagun shrestha24-Mar-09 18:48 
AnswerRe: Error with nhunspell Pin
Ashfield24-Mar-09 22:15
Ashfield24-Mar-09 22:15 
QuestionHelp me!!with C# Please Pin
hoale200824-Mar-09 18:43
hoale200824-Mar-09 18:43 
GeneralRe: Help me!!with C# Please Pin
King Julien24-Mar-09 19:49
King Julien24-Mar-09 19:49 
AnswerRe: Help me!!with C# Please Pin
Christian Graus24-Mar-09 20:24
protectorChristian Graus24-Mar-09 20:24 
AnswerRe: Help me!!with C# Please Pin
0x3c024-Mar-09 21:10
0x3c024-Mar-09 21:10 
QuestionControlPaint.DrawReversibleFrame Pin
yesu prakash24-Mar-09 18:29
yesu prakash24-Mar-09 18:29 
AnswerRe: ControlPaint.DrawReversibleFrame Pin
King Julien24-Mar-09 19:59
King Julien24-Mar-09 19:59 

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.