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 :
please i need help for thisPrivate 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