Neler yeni

Welcome to SATBİL FORUM PAYLAŞIM

Join us now to get access to all our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, and so, so much more. It's also quick and totally free, so what are you waiting for?

Bir Satbil Forum Efsanesi

Satbil Reklam Alanı

Satbil Forum Reklam

Visual Basicte Ses Dosyası Çalmak

PowerDns

New member
Local time
05:15
Katılım
30 Ocak 2008
Mesajlar
57
Tepkime puanı
1
Puanları
0
BUnu general declarations kısımına yani kodların en üstüne.
Kod Alanı:

Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long ) As Long


Kod Alanı:

Private Sub Command1_Click( )
sndPlaySound "sesdosyası.wav", 1
End Sub


Burda command1 adlı butonun tıklama olayına yazılmış ama sen ne zaman müziğin başlamasını istiyorsan oraya yazabilirsin.Mesela form açılır açılmaz çalsın istiyorsan
Private Sub Form_load( )
sndPlaySound "sesdosyası.wav", 1
End sub
 
shape1
shape2
shape3
shape4
shape7
shape8
Üst