Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

music file explorer c#

using (OpenFileDialog openFileDialog1 = new OpenFileDialog())
            {
                openFileDialog1.InitialDirectory = "c:UsersMarcoGTMusic";
                openFileDialog1.Filter = "Musics(*.wav)|*.wav*";
                openFileDialog1.FilterIndex = 2;
                openFileDialog1.RestoreDirectory = true;
                if (openFileDialog1.ShowDialog() == DialogResult.OK)
                {
                    //do what you want with the file location
         
                }
 
PREVIOUS NEXT
Tagged: #music #file #explorer
ADD COMMENT
Topic
Name
5+1 =