I want to be able to display two file extensions in the listbox but apparently the code only works if i place one value (ex: string extension = "*.png";) on my code.
string path = cmbDrive.Text;
string extension = "*.txt" + "*.png";
foreach (string s in FileUts.GetFiles(path, extension))
{
lbDBview.Items.Add(s);
}
if (lbDBview.Items.Count == 0)
{
MessageBox.Show("No Files found!");
}