Answers for "music file explorer c#"

C#
0

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
         
                }
Posted by: Guest on March-02-2021

C# Answers by Framework

Browse Popular Code Answers by Language