Question need help in this ( mute picture box problem )

hamzah123

New member
Joined
Mar 28, 2011
Messages
1
Programming Experience
Beginner
iam working in media player for my own every thing in code is working but if i pressed on mute picture box to mute sound and re-open another video or music file the sound is playing and the sign in mute picture box is show that iam in mute mode this is the code for mute picture box :


Private Sub Volume_PictureBox_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Volume_PictureBox.Click
Try
If MuteBol = False Then
AxWindowsMediaPlayer1.settings.mute = True
MuteBol = True
Volume_PictureBox.Image = My.Resources.Muted_Volume_Hover'mute picture
MuteToolStripMenuItem.Checked = True
Me.ToolTip1.SetToolTip(Volume_PictureBox, "UnMute")

ElseIf MuteBol = True Then
AxWindowsMediaPlayer1.settings.mute = False
MuteBol = False
Volume_PictureBox.Image = My.Resources.Volume_Hover'un-mute picture
MuteToolStripMenuItem.Checked = False
Me.ToolTip1.SetToolTip(Volume_PictureBox, "Mute")
End If
Catch ex As Exception
MessageBox.Show(ex.Message & ex.Source)
End Try
End Sub
please i need help for this
 
Back
Top