private void BtnSelect_Click(object sender, EventArgs e) { if (DlgSelect.ShowDialog() == DialogResult.OK) { MyPlayer.URL = DlgSelect.FileName; } }
private void BtnSelect_Click(object sender, EventArgs e) { if (DlgSelect.ShowDialog() == DialogResult.OK) { try { var filePath = DlgSelect.FileName; using (FileStream fs = File.Open(filePath, FileMode.Open)) { Process.Start("Notepad++.exe", filePath); } } catch (SecurityException ex) { MessageBox.Show($"{ex.Message}"); throw; } } }