I'm using WinForms. In my form i have a textbox where i place a file path to see the files in that particular folder. The problem is that my array index orders the files differently then what i see in my folder. How do i get my array to match what i see inside my folder?
private void Button_Click(object sender, EventArgs e)
{
string[] array1 = Directory.GetFiles(img_Source_TxtBox.Text);
}
- Notice that my array index is random from that particular directory.
Array Values
My Folder Values