Imports System.IO Public Class Form71 Private Sub Form71_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim lines1a() As String = File.ReadAllLines(théme) If lines1a(0) = 2 Then Me.BackColor = Color.FromArgb(64, 64, 64) ListBox1.BackColor = Color.FromArgb(64, 64, 64) ListBox1.ForeColor = Color.White Button1.BackColor = Color.FromArgb(64, 64, 64) Button1.ForeColor = Color.White ElseIf lines1a(0) = 3 Then Me.BackColor = Color.FromArgb(Form1.colorbackA, Form1.colorbackR, Form1.colorbackG, Form1.colorbackB) ListBox1.BackColor = Color.FromArgb(Form1.colorbackA, Form1.colorbackR, Form1.colorbackG, Form1.colorbackB) ListBox1.ForeColor = Color.FromArgb(Form1.themeforecoloA, Form1.themeforecoloR, Form1.themeforecoloG, Form1.themeforecoloB) Button1.BackColor = Color.FromArgb(Form1.colorbackA, Form1.colorbackR, Form1.colorbackG, Form1.colorbackB) Button1.ForeColor = Color.FromArgb(Form1.themeforecoloA, Form1.themeforecoloR, Form1.themeforecoloG, Form1.themeforecoloB) Else End If Dim sr As New StreamReader(filmhc) While (sr.Peek >= 0) ListBox1.Items.Add(sr.ReadLine) End While sr.Close() End Sub Private Sub Button1_Click_1(sender As Object, e As EventArgs) Handles Button1.Click Dim lines1222() As String = File.ReadAllLines(settings1) If lines1222(5) = 1 Then Form1.Timer25.Start() End If Form1.AjoutéAuFavorisToolStripMenuItem.Enabled = False Dim t1 = ListBox1.SelectedItem Dim t2 = marqueur & t1 & ".txt" If File.Exists(t2) = True Then Form2.ShowDialog() Else langfr() End If End Sub Private Sub Form71_Closed(sender As Object, e As EventArgs) Handles Me.Closed ListBox1.Items.Clear() End Sub Sub nonotif() If ListBox1.SelectedItem = "" Then MsgBox("Merci de sélectionnez un film", MsgBoxStyle.Exclamation) Else Form1.AxWindowsMediaPlayer1.URL = film & "/" & ListBox1.SelectedItem & "/" & ListBox1.SelectedItem & ".mkv" Form1.PictureBox1.Hide() Form1.Text = lecteurnom & Form1.AxWindowsMediaPlayer1.currentMedia.name Form1.TextBox1.Text = Form1.AxWindowsMediaPlayer1.currentMedia.name & " film" Form1.PictureBox2.Hide() Form1.PictureBox7.Hide() Form1.PictureBox1.Hide() Form1.PictureBox4.Show() Form1.VitesseToolStripMenuItem.Enabled = True Form1.AllaiAToolStripMenuItem.Enabled = True Form1.PictureBox5.Enabled = True Form1.PictureBox6.Enabled = True Form1.PictureBox7.Enabled = True Form1.PauseToolStripMenuItem.Enabled = True Form1.StopToolStripMenuItem.Enabled = True Form1.PleinToolStripMenuItem.Enabled = True Form1.AjoutéUnMarqueurToolStripMenuItem.Enabled = True Button1.Enabled = True Form16.Close() Me.Close() End If End Sub Sub lang() fr() End Sub Sub fr() If ListBox1.SelectedItem = "" Then MsgBox("Merci de sélectionnez un film", MsgBoxStyle.Exclamation) Else Form1.AxWindowsMediaPlayer1.URL = film & "/" & ListBox1.SelectedItem & "/" & ListBox1.SelectedItem & ".mkv" Form1.PictureBox1.Hide() Form1.Text = lecteurnom & Form1.AxWindowsMediaPlayer1.currentMedia.name Form1.TextBox1.Text = Form1.AxWindowsMediaPlayer1.currentMedia.name & " film" Form1.NotifyIcon1.BalloonTipTitle = lecteurnom Form1.NotifyIcon1.BalloonTipText = "vous regarder:" & " " & Form1.AxWindowsMediaPlayer1.currentMedia.name Form1.NotifyIcon1.ShowBalloonTip(1) Form1.PictureBox2.Hide() Form1.PictureBox7.Hide() Form1.PictureBox1.Hide() Form1.PictureBox4.Show() Form1.VitesseToolStripMenuItem.Enabled = True Form1.AllaiAToolStripMenuItem.Enabled = True Form1.PictureBox5.Enabled = True Form1.PictureBox6.Enabled = True Form1.PictureBox7.Enabled = True Form1.PauseToolStripMenuItem.Enabled = True Form1.StopToolStripMenuItem.Enabled = True Form1.PleinToolStripMenuItem.Enabled = True Form1.AjoutéUnMarqueurToolStripMenuItem.Enabled = True Button1.Enabled = True Form16.Close() Me.Close() End If End Sub Sub langfr() Dim lines1() As String = File.ReadAllLines(notification) If lines1(0) = 1 Then lang() ElseIf lines1(0) = 0 Then nonotif() End If End Sub End Class