Oppure

Loading
03/05/11 20:39
TEX WILLER
salve a tutti vorrei chiedervi un favore sto creando un giochino in cui si estraggono numeri a random, solo che vorrei sapere come riprodurre musica al posto del "beep" mi dite la stringa da mettere per favore. grazie a tutti :hail:
Public Class Form1
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        End

    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        PictureBox1.Visible = False
        Label1.Text = CStr(Int(Rnd() * 90))
        Label2.Text = CStr(Int(Rnd() * 90))
        Label3.Text = CStr(Int(Rnd() * 90))
        If (Label1.Text = 7) Or (Label2.Text = 7) Or (Label3.Text = 7) Then
            PictureBox1.Visible = True
            Beep()
        End If
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Randomize()

    End Sub
End Class
aaa
04/05/11 9:15
Il Totem
Se non vuoi includere librerie esterne, usa My.Computer.Audio.Play. Accetta solo un percorso relativo al file wave da riprodurre. Altrimenti usa Microsoft.DirectX.AudioVideoPlayback.Audio.
aaa