06-11-12, 09:44 PM
الف شكر اخواني جزاكم الله خير
هنا واجهتني مشكلة بعد اضافة ملفات الصوت الى Resources
الكود التالي هو عند تطابق الكتابة على txtAns1=3 بقوم بتشغيل ملف الصوت You_are_Right
وعند عدما يكون txtAns1<> 3 يقوم بتشغيل ملف الصوت Wrong_Answer
اريد عندما يكون txtAns1="" لا يظهر لي الصوت نهائياً
End Sub
هنا واجهتني مشكلة بعد اضافة ملفات الصوت الى Resources
الكود التالي هو عند تطابق الكتابة على txtAns1=3 بقوم بتشغيل ملف الصوت You_are_Right
وعند عدما يكون txtAns1<> 3 يقوم بتشغيل ملف الصوت Wrong_Answer
اريد عندما يكون txtAns1="" لا يظهر لي الصوت نهائياً
PHP كود :
Private Sub txtAns1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles txtAns1.TextChanged
If Me.txtAns1.Text = "3" Then
Me.lblB1.ForeColor = Me.lblA3.ForeColor
My.Computer.Audio.Play(My.Resources.You_are_right, AudioPlayMode.Background)
ElseIf Me.txtAns1.Text <> "3" Then
My.Computer.Audio.Play(My.Resources.Wrong_Answer, AudioPlayMode.Background)
Me.lblB1.ForeColor = Color.Black
Me.txtAns1.Text = ""
End If

