![]() |
C# Ses Dosyası Çalma
C# Ses Dosyası Çalma
Belirtilen yoldaki müzik dosyasını oynatan program kodu (.net Framework 2.0 gereklidir) Kod: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Media; // Eklenmesi gereken namespace. namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { SoundPlayer player = new SoundPlayer(); string path = "C:\\windows\\media\\ding.wav"; // Müzik adresi player.SoundLocation = path; player.Play(); //play it } } } |
| Forum saati; Türkiye'ye göre ayarlanmış olup, şu an saat: 21:59. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Navbar with Avatar by Motorradforum