Đang tải... (xem toàn văn)
Giáo trình C#
using System.Media; // gõ thêm vào dòng này // chạy file .wav public static void PlayMusic(string filename) { SoundPlayer sound = new SoundPlayer(filename); sound.LoadAsync(); sound.Play(); }Đang tải... (xem toàn văn)
Giáo trình C#
using System.Media; // gõ thêm vào dòng này // chạy file .wav public static void PlayMusic(string filename) { SoundPlayer sound = new SoundPlayer(filename); sound.LoadAsync(); sound.Play(); }Ngày đăng: 14/11/2012, 17:18
Xem thêm: Giáo trình C# Add nhac vào C#.