Selamlar, Visual Stuido formlarında butona ses nasıl ekleyebilirim yardımcı olabilir misiniz?
Follow along with the video below to see how to install our site as a web app on your home screen.
Not: This feature may not be available in some browsers.
Private Sub playSound()
Dim Mytone As New System.Media.SoundPlayer
Mytone.SoundLocation = "audio.wav"
Mytone.Load()
Mytone.Play()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cexitButton.Click
playsound()
End Sub
Private Sub playSound()
Dim Mytone As New System.Media.SoundPlayer
Mytone.SoundLocation = "audio.wav"
Mytone.Load()
Mytone.Play()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cexitButton.Click
playsound()
End Sub
Teşekkür ederimMerhaba,
Aşağıdaki kod umarım yardımcı olur
Kod:Private Sub playSound() Dim Mytone As New System.Media.SoundPlayer Mytone.SoundLocation = "audio.wav" Mytone.Load() Mytone.Play() End Sub Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cexitButton.Click playsound() End Sub
İyi forumlar!