• Giriş

Gorsel Programlama

  • AnaSayfa
  • Hakkımızda
  • TOP-10 Proje
  • Download
  • Özel Ders
  • Reklam Verin
  • Destek
  • İletişim
RSS feed
  • Youdao
  • Xian Guo
  • Zhua Xia
  • Google
  • My Yahoo!
  • newsgator
  • Bloglines
  • iNezha
© 2009-2024 Gorsel Programlama

Api ile Müzik Çalar Programı — Csharp

Api ile Müzik Çalar Programı — Csharp

muzik_calar


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace WindowsFormsApplication4
{
 public partial class Form1 : Form
 {
 [DllImport("winmm.dll")]
 private static extern long mciSendString(string strCommand, StringBuilder strReturn, int iReturnLength, IntPtr hwndCallback);
 public string Pcommand;
 public bool isOpen;
 public Form1()
 {
 InitializeComponent();
 }
 private void button1_Click(object sender, EventArgs e)
 {
 openFileDialog1.Filter = "Media File(*.mpg,*.dat,*.avi,*.wmv,*.wav,*.mp3)|*.wav;*.mp3;*.mpg;*.dat;*.avi;*.wmv";
 openFileDialog1.ShowDialog();
 if (openFileDialog1.FileName != "")
 textBox1.Text = openFileDialog1.FileName;//www.gorselprogramlama.com
 }
 private void button2_Click(object sender, EventArgs e)
 {
 Pcommand = "open \"" + textBox1.Text + "\" type mpegvideo alias MediaFile";
 mciSendString(Pcommand, null, 0, IntPtr.Zero);
 isOpen = true;
 Play(true);
 }
 private void button3_Click(object sender, EventArgs e)
 {
 Pcommand = "close MediaFile";
 mciSendString(Pcommand, null, 0, IntPtr.Zero);
 isOpen = false;//www.gorselprogramlama.com
 }
 private void button4_Click(object sender, EventArgs e)
 {
 Application.Exit();
 }
 public void Play(bool loop)
 {
 if (isOpen)
 {
 Pcommand = "play MediaFile";
 if (loop)
 Pcommand += " REPEAT";
 mciSendString(Pcommand, null, 0, IntPtr.Zero);
 }//www.gorselprogramlama.com
 }
 }
}

 

Projeyi İNDİR

Paylaş :
Tweet
Yorum Yazın | Geri
5 Kasım Perşembe,2015 Tarihinde Yayınlanmıştır. Bulunduğu Kategori : C#
Etiket: Api ile Müzik Çalar Programı Csharp, csharp örnekleri, Forms örnekleri, windows forms application
« MultiThreading İşlemi — Csharp Console Sihirbaz ile Veri tabanı Bağlantısı — Csharp »
Henüz Yorum Yok.

Yorum Yazın ...

Cevabı İptal
XHTML: Bu Etiketleri Kullanabilirsiniz : <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
RSS Bu Yazıya Yapılan Yorumlar


Site içi Arama

Takip et: @GorselProgram







Böyle bir web sayfam olsun diyorsanız iletişim bölümünden veya gorselprogram@gmail.com mail adresinden bize ulaşabilirsiniz.

Son Yazılar

  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 2.dönem 2. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 2.dönem 1. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 1.dönem 2. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı nesne tabanlı programlama dersi 1.dönem 1. yazılı ve uygulama sınav soruları ve cevap anahtarı
  • 2023-2024 öğretim yılı bilgisayar tasarım uygulamaları dersi 1.dönem 1.sınav soruları ve cevap anahtarı

Etiket Bulutu

.NET Application basit C# C#.NET application C#.NET codes C#.NET examples C#.NET lessons C#.NET practice C#.net örnekleri c# console dersleri c# console örnekleri C# ders c# dersleri c# örnek c# örnekleri C.net dersleri c dersleri code console console örnekleri Csharp csharp dersleri csharp net csharp örnekleri c örnekleri download Flash örnekleri forms Forms örnekleri full indir kod kodlar nesne tabanlı programlama OleDbConnection OleDbDataAdapter tam sürüm uygulama vb net win windows windows forms application örnek ücretsiz

Kategoriler

  • Access (59)
  • Akış Diyagramı Flowchart (69)
  • Android Eğitimleri (2)
  • Asp Net (47)
  • C# (834)
  • C# Console (222)
  • Css (19)
  • Dersler (191)
  • Dökümanlar (21)
  • Dreamweaver (12)
  • Excel (8)
  • Fireworks (28)
  • Flash (77)
  • Görsel Programlama (421)
  • GorselProgramlama.Com (8)
  • Html (35)
  • Pascal (2)
  • Photoshop (5)
  • PHP (2)
  • Planlar (114)
  • Programlama Tanım (4)
  • Sınavlar (147)
  • Sql (10)
  • VB 6.0 (45)
  • VB.NET (219)
  • Videolar (65)
  • Word (7)

Arşiv

Bağlantılar

  • Html Dersleri
  • Muslu.NET
  • Programlama Dersleri

Kimler Sitede ?


    Computers Blogs Top programming blogs

   sayaç Powered by WordPress | Theme by NeoEase | Valid XHTML 1.1 and CSS 3 Yukarı