E
elfenliedtopfan2
Guest
is there a way to display only say .mp3 or .zip files or even cdg files
i have this code here
public void newlistbox()
{
// geting mods folder
checkedListBoxControl1.Items.Clear();
string[] files = Directory.GetFiles(kr_base.elfenliedprogsettings.Read("List_dir"));
string[] dirs = Directory.GetDirectories(kr_base.elfenliedprogsettings.Read("List_dir"));
foreach (string file in files)
{
checkedListBoxControl1.Items.Add(Path.GetFileName((file)));// + "\\" + Path.GetFileName((file)));
listboxchoice.Add(file);
}
foreach (string dir in dirs)
{
//waw_mod.Items.Add(Path.GetFileName(dir)
checkedListBoxControl1.Items.Add(Path.GetFileName((dir)));// + "\\" + Path.GetFileName((dir)));
listboxchoice.Add(dir);
}
getname();
}
public void getname()
{
//geting mods folder
checkedListBoxControl1.Items.Clear();
string[] files = Directory.GetFiles(kr_base.elfenliedprogsettings.Read("List_dir"));
string[] dirs = Directory.GetDirectories(kr_base.elfenliedprogsettings.Read("List_dir"));
foreach (string elfy22 in files)
{
checkedListBoxControl1.Items.Add(Path.GetFileName((elfy22)));
}
foreach (string elfy33 in dirs)
{
checkedListBoxControl1.Items.Add(Path.GetFileName((elfy33)));
}
}
and i only want it to show eather .zip files or .cdg files as i am making a karaoke program but not sure how to impliment only certin files being shown in the listbox
Continue reading...
i have this code here
public void newlistbox()
{
// geting mods folder
checkedListBoxControl1.Items.Clear();
string[] files = Directory.GetFiles(kr_base.elfenliedprogsettings.Read("List_dir"));
string[] dirs = Directory.GetDirectories(kr_base.elfenliedprogsettings.Read("List_dir"));
foreach (string file in files)
{
checkedListBoxControl1.Items.Add(Path.GetFileName((file)));// + "\\" + Path.GetFileName((file)));
listboxchoice.Add(file);
}
foreach (string dir in dirs)
{
//waw_mod.Items.Add(Path.GetFileName(dir)
checkedListBoxControl1.Items.Add(Path.GetFileName((dir)));// + "\\" + Path.GetFileName((dir)));
listboxchoice.Add(dir);
}
getname();
}
public void getname()
{
//geting mods folder
checkedListBoxControl1.Items.Clear();
string[] files = Directory.GetFiles(kr_base.elfenliedprogsettings.Read("List_dir"));
string[] dirs = Directory.GetDirectories(kr_base.elfenliedprogsettings.Read("List_dir"));
foreach (string elfy22 in files)
{
checkedListBoxControl1.Items.Add(Path.GetFileName((elfy22)));
}
foreach (string elfy33 in dirs)
{
checkedListBoxControl1.Items.Add(Path.GetFileName((elfy33)));
}
}
and i only want it to show eather .zip files or .cdg files as i am making a karaoke program but not sure how to impliment only certin files being shown in the listbox
Continue reading...