View Single Post
Old Dec 5th, 2005, 9:57 PM   #1
Intimidat0r
Hobbyist Programmer
 
Intimidat0r's Avatar
 
Join Date: May 2005
Location: Don't know, but the padded walls are a nice touch.
Posts: 126
Rep Power: 0 Intimidat0r is an unknown quantity at this point
Send a message via ICQ to Intimidat0r Send a message via AIM to Intimidat0r Send a message via MSN to Intimidat0r Send a message via Yahoo to Intimidat0r
trying to write a file manager

im trying to write a file manager. its got this:

string[] directories = new string[10000];
directories = System.IO.Directory.GetFiles(path);
for (int i = 0; i <= directories.Length; i++)
  ListView1.Items.Add(directories[i]);

and when i run it, it doesnt populate the list view like it should be doing on the last line. any idea why? thanks.
__________________
Children in the dark cause accidents, and accidents in the dark cause children.

http://www.ronincoders.org
Intimidat0r is offline   Reply With Quote