using System;
using System
using System
using System
using System
using System
using System
using System
using System
using System
namespace SoundPlayerApp
{
public partial class Form
{
private SoundPlayer simpleSound;
public Form
{
InitializeComponent();
}
private void button
{
OpenFileDialog OpenFileDialog
OpenFileDialog
if (OpenFileDialog
{
simpleSound = new SoundPlayer(OpenFileDialog
simpleSound
}
}
private void button
{
OpenFileDialog OpenFileDialog
OpenFileDialog
if (OpenFileDialog
{
simpleSound = new SoundPlayer(OpenFileDialog
simpleSound
}
}
private void button
{
if (simpleSound != null) simpleSound
}
private void button
{
simpleSound = new SoundPlayer(Properties
simpleSound
}
private void button
{
simpleSound = new SoundPlayer(Properties
simpleSound
}
private void button
{
if (simpleSound != null) simpleSound
}
private void button
{
switch (comboBox
{
case
SystemSounds
break;
case
SystemSounds
break;
case
SystemSounds
break;
case
SystemSounds
break;
case
SystemSounds
break;
}
}
private void button
{
ResourceManager rm = ResourceManager
byte[] buffer = (byte[])rm
FileStream FS = new FileStream(
BinaryWriter BWriter = new BinaryWriter(FS);//以二進制打開文件流
BWriter
BWriter
FS
simpleSound = new SoundPlayer(
simpleSound
}
private void button
{
ResourceManager rm = ResourceManager
byte[] buffer = (byte[])rm
FileStream FS = new FileStream(
BinaryWriter BWriter = new BinaryWriter(FS);//以二進制打開文件流
BWriter
BWriter
FS
simpleSound = new SoundPlayer(
simpleSound
}
private void button
{
if (simpleSound != null) simpleSound
}
}
}
From:http://tw.wingwit.com/Article/program/net/201311/11808.html