I work with this code to open folder and browse files from it, but i need to get this files without open folder,when I run my program automatically load this files, I try to use GetFiles()
but didn't work with me when apply the filter for files i want to select
this is my code
OpenFileDialog dlg = new OpenFileDialog();
dlg.InitialDirectory = @"C:\Users\ahmed\Desktop\samples";
dlg.Filter = "Gestures (*.xml)|*.xml";
dlg.Title = "Load Gestures";
dlg.RestoreDirectory = false;
dlg.Multiselect = true;
if (dlg.ShowDialog(this) == DialogResult.OK)
{
for (int i = 0; i < dlg.FileNames.Length; i++)
{
string name = dlg.FileNames[i];
_rec.LoadGesture(name);
}
ReloadViewForm();
}