music file explorer c# code example
Example: music file explorer c#
using (OpenFileDialog openFileDialog1 = new OpenFileDialog())
{
openFileDialog1.InitialDirectory = "c:\\Users\\MarcoGT\\Music";
openFileDialog1.Filter = "Musics(*.wav)|*.wav*";
openFileDialog1.FilterIndex = 2;
openFileDialog1.RestoreDirectory = true;
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
//do what you want with the file location
}