Could someone assist me in converting this code to vb.net, I tried some of the online converters but it isn't translating well.
private System.Int32 iHandle;
private void btnStop_Click(object sender, System.EventArgs e)
{
Win32.SendMessage(iHandle, Win32.WM_COMMAND, 0x00004979, 0x00000000);
}
private void btnPlayPause_Click(object sender, System.EventArgs e)
{
Win32.SendMessage(iHandle, Win32.WM_COMMAND, 0x00004978, 0x00000000);
}
private void MainForm_Load(object sender, System.EventArgs e)
{
// get Window handle
iHandle = Win32.FindWindow("WMPlayerApp", "Windows Media Player");
Here's a link to the original article.
http://www.codeproject.com/csharp/wmp_pinvoke.asp
Thanks in advance!
}
private System.Int32 iHandle;
private void btnStop_Click(object sender, System.EventArgs e)
{
Win32.SendMessage(iHandle, Win32.WM_COMMAND, 0x00004979, 0x00000000);
}
private void btnPlayPause_Click(object sender, System.EventArgs e)
{
Win32.SendMessage(iHandle, Win32.WM_COMMAND, 0x00004978, 0x00000000);
}
private void MainForm_Load(object sender, System.EventArgs e)
{
// get Window handle
iHandle = Win32.FindWindow("WMPlayerApp", "Windows Media Player");
Here's a link to the original article.
http://www.codeproject.com/csharp/wmp_pinvoke.asp
Thanks in advance!
}