using System.Diagnostics;
[DllImport("winmm.dll")]
private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength, IntPtr hwndCallback);
public string befehl;
private void btn_laden_Click(object sender, EventArgs e)
{
if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
label1.Text = openFileDialog1.FileName;
befehl = "open "" + label1.Text +"""" type MPEGVideo alias MediaFile"";
Alte URL:
/snippet/abspielen-von-mp3s/97
using System.Runtime.InteropServices;
using System.IO;
using System.Text;
Muss noch eingebunden werden.