Sunteți pe pagina 1din 14

Imports WMPLib Imports AxWMPLib Imports System.

IO Public Class Form1 Inherits Form Public Sub New() Try InitializeComponent() Styler.Renderer = New MyRenderer() MinoxAgent.Renderer = New MyRenderer() ' MenuStrip1.Renderer = New MyRenderer() Form2.MenuStrip2.Renderer = New MyRenderer() Catch ex As Exception End Try End Sub Public Sub ChecAssocation() Try My.Computer.Registry.ClassesRoot.CreateSubKey(".MP3 File").SetValue( "", "MinoxPlayer", Microsoft.Win32.RegistryValueKind.String) My.Computer.Registry.ClassesRoot.CreateSubKey("MinoxPlayer\shell\ope n\comand").SetValue("", Application.ExecutablePath & " ""%1"" ", Microsoft.Win32 .RegistryValueKind.String) My.Computer.Registry.ClassesRoot.CreateSubKey("MinoxPlayerDefaultIco n").SetValue("", Application.StartupPath & "\MP3.ico") Catch ex As Exception End Try End Sub Public Class MyRenderer Inherits ToolStripProfessionalRenderer Protected Overloads Overrides Sub OnRenderMenuItemBackground(ByVal e As ToolStripItemRenderEventArgs) Try Dim rc As New Rectangle(Point.Empty, e.Item.Size) Dim c As Color = IIf(e.Item.Selected, Color.Red, Color.Gray) Using brush As New SolidBrush(c) e.Graphics.FillRectangle(brush, rc) End Using Catch ex As Exception End Try End Sub End Class Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles Timer1.Tick 'deploying Timer1 play mode Form2.PlayList1.SelectedIndex = Form2.Playlist.SelectedIndex If MediaPlayer.playState = WMPLib.WMPPlayState.wmppsStopped Then NextTrack() If MediaPlayer.playState = WMPLib.WMPPlayState.wmppsStopped Then Timer2.Stop() gTrackBar1.Value = 0

maxTime.Text = "00:00" curentTime.Text = "00:00" End If Try Catch ex As Exception '**************** MediaPlayer.URL = "" Txt_TrackName.Text = Form2.Playlist.SelectedItem End Try End If '*********************************************************************** ************* 'This is playAll sequence for MinoxPlayer 'this function tels the Minox to play all items all over again 'REPEAT End Sub 'creating NextTrack control Private Sub NextTrack() Try Dim s = Form2.PlayList1.SelectedIndex Dim f = Form2.Playlist.SelectedIndex Form2.PlayList1.SelectedIndex = s + 1 Form2.Playlist.SelectedIndex = f + 1 Play() Catch ex As Exception MediaPlayer.URL = "" Play1.Text = " Play" End Try End Sub 'creating PreviousTrack control Private Sub PreviousTrack() Try Dim s = Form2.PlayList1.SelectedIndex Dim f = Form2.Playlist.SelectedIndex Form2.PlayList1.SelectedIndex = s - 1 Form2.Playlist.SelectedIndex = f - 1 Play() Catch ex As Exception MediaPlayer.URL = "" Play1.Text = " Play" End Try End Sub 'declaring Play() sub procedure_______ Private Sub Play() Try Timer2.Enabled = True Timer3.Enabled = True If MediaPlayer.playState = WMPLib.WMPPlayState.wmppsPaused Then MediaPlayer.Ctlcontrols.play() Else MediaPlayer.URL = Form2.PlayList1.SelectedItem End If Play1.Text = "Pause" Catch ex As Exception

End Try End Sub Private Sub btnPlay_Click(ByVal sender As System.Object, ByVal e As System.E ventArgs) Handles btn_Play.Click 'MsgBox("No song") 'Timer2.Stop() '/in case when there is nothing to play '******************* 'player will not reset the timer's Try MediaPlayer.Ctlcontrols.play() If Me.Text = System.IO.Path.GetFileName(Form2.PlayList1.SelectedItem ) Then Timer2.Start() Else Try 'Ako nema pjesama na playlisti program nee zapoeti produkciju 'licenca: AmarTufo 'verzija gre ke: playFunction v1.0.0 Timer2.Stop() gTrackBar1.Value = 0 maxTime.Text = "00:00" curentTime.Text = "00:00" Catch ex As Exception End Try End If Catch ex As Exception End Try End Sub Private Sub FullMode_Click(ByVal sender As System.Object, ByVal e As System. EventArgs) Handles FullMode.Click Try If FullMode.Text = "Full" Then MediaPlayer.uiMode = "Full" FullMode.Text = "None" Else MediaPlayer.uiMode = "none" FullMode.Text = "Full" End If Catch ex As Exception End Try End Sub 'This is for STOP playing Private Sub btnStop_Click(ByVal sender As System.Object, ByVal e As System.E ventArgs) Handles btn_Stop.Click 'creating StopPlay() control gTrackBar1.Enabled = False MediaPlayer.URL = "" Me.Text = "Minox Player" gTrackBar1.Value = 0 Timer2.Stop()

maxTime.Text = "00:00" curentTime.Text = "00:00" 'Play1.Text = "Play" End Sub Private Sub PlayItems_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) End Sub 'Delete selected items in Playlist2 'ClearAll in Playlist2 'Programming BackgroundColor theme choser for Playlist2 Private Sub SilverToolStripMenuItem_Click(ByVal sender As System.Object, ByV al e As System.EventArgs) Handles SilverToolStripMenuItem.Click 'Silver background color Form2.Playlist.BackColor = Color.Silver End Sub Private Sub BlackToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles BlackToolStripMenuItem.Click 'Black background color Form2.Playlist.BackColor = Color.Black End Sub Private Sub GreenToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles GreenToolStripMenuItem.Click 'Green background color Form2.Playlist.BackColor = Color.Green End Sub Private Sub BlueToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BlueToolStripMenuItem.Click 'Blue background color Form2.Playlist.BackColor = Color.Blue End Sub Private Sub OrangeToolStripMenuItem_Click(ByVal sender As System.Object, ByV al e As System.EventArgs) Handles OrangeToolStripMenuItem.Click 'Orange background color Form2.Playlist.BackColor = Color.Orange End Sub Private Sub OrangeRedToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OrangeRedToolStripMenuItem.Click Form2.Playlist.BackColor = Color.OrangeRed End Sub Private Sub BackColorToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackColorToolStripMenuItem.Click End Sub 'Programming playlist text color theme Private Sub OrangeToolStripMenuItem1_Click(ByVal sender As System.Object, By Val e As System.EventArgs) Handles OrangeToolStripMenuItem1.Click Form2.Playlist.ForeColor = Color.Orange End Sub Private Sub RedToolStripMenuItem_Click(ByVal sender As System.Object, ByVal

e As System.EventArgs) Handles RedToolStripMenuItem.Click 'ForeColor of text changed into Red Form2.Playlist.ForeColor = Color.Red End Sub Private Sub WhiteToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles WhiteToolStripMenuItem.Click 'ForeColor of text changed into White Form2.Playlist.ForeColor = Color.White End Sub Private Sub YellowToolStripMenuItem_Click(ByVal sender As System.Object, ByV al e As System.EventArgs) Handles YellowToolStripMenuItem.Click 'ForeColor of text changed into Yellow Form2.Playlist.ForeColor = Color.Yellow End Sub Private Sub BlueToolStripMenuItem1_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles BlueToolStripMenuItem1.Click Form2.Playlist.ForeColor = Color.Blue End Sub Private Sub LightGreenToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LightGreenToolStripMenuItem.Click Form2.Playlist.ForeColor = Color.LightGreen End Sub Private Sub DodgerBlueToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DodgerBlueToolStripMenuItem.Click Form2.Playlist.ForeColor = Color.DodgerBlue End Sub Private Sub btnNext(ByVal sender As System.Object, ByVal e As System.EventAr gs) Handles btn_Next.Click 'MsgBox("No song") Try Timer2.Stop() maxTime.Text = "00:00" curentTime.Text = "00:00" gTrackBar1.Value = 0 If Me.Text = System.IO.Path.GetFileName(Form2.PlayList1.SelectedItem ) Then NextTrack() Else 'No song on playlist() 'Timer1.Stop() Timer2.Stop() gTrackBar1.Value = 0 maxTime.Text = "00:00" curentTime.Text = "00:00" End If Catch ex As Exception End Try 'Timer2.Start() End Sub Private Sub btnPrev(ByVal sender As System.Object, ByVal e As System.EventAr

gs) Handles btn_Prev.Click 'MsgBox("No song") Try Timer2.Stop() maxTime.Text = "00:00" curentTime.Text = "00:00" gTrackBar1.Value = 0 If Me.Text = System.IO.Path.GetFileName(Form2.PlayList1.SelectedItem ) Then PreviousTrack() Else 'No song on playlist() 'Timer1.Stop() Timer2.Stop() gTrackBar1.Value = 0 maxTime.Text = "00:00" curentTime.Text = "00:00" End If Catch ex As Exception End Try 'Timer2.Start() End Sub Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.Ev entArgs) Handles btn_Add.Click 'Imports an mp3 files into Playlist_________ Dim open As New OpenFileDialog Try open.Title = "Load Music" Form2.lblCount.Text = " " & (Form2.Playlist.Items.Count.ToString) open.FileName = "" open.Multiselect = True open.Filter = "Mp3 Files (*.mp3) |*.mp3" If open.ShowDialog = Windows.Forms.DialogResult.OK Then For Each track As String In open.FileNames Form2.PlayList1.Items.Add(track) Next For Each trackname As String In open.SafeFileNames Form2.Playlist.Items.Add(trackname) Next End If Catch ex As Exception End Try End Sub Private Sub DeleteToolStripMenuItem_Click(ByVal sender As System.Object, ByV al e As System.EventArgs) Handles DeleteToolStripMenuItem.Click Try 'TrackList.Items.Remove(TrackList.SelectedItem) Catch ex As Exception End Try End Sub Private Sub ClearToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles ClearToolStripMenuItem.Click Try 'TrackList.Items.Clear()

Catch ex As Exception End Try End Sub Private Sub RedToolStripMenuItem1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RedToolStripMenuItem1.Click Form2.Playlist.BackColor = Color.Gold End Sub Private Sub YellowToolStripMenuItem1_Click(ByVal sender As System.Object, By Val e As System.EventArgs) Handles YellowToolStripMenuItem1.Click Form2.Playlist.BackColor = Color.Yellow End Sub Private Sub MagentaToolStripMenuItem_Click(ByVal sender As System.Object, By Val e As System.EventArgs) Handles MagentaToolStripMenuItem.Click Form2.Playlist.ForeColor = Color.Magenta End Sub Private Sub BlueToolStripMenuItem2_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles BlueToolStripMenuItem2.Click Play1.BackColor = Color.DodgerBlue Prev1.BackColor = Color.DodgerBlue Stop1.BackColor = Color.DodgerBlue Next1.BackColor = Color.DodgerBlue End Sub Private Sub SilverToolStripMenuItem1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SilverToolStripMenuItem1.Click Play1.BackColor = Color.Silver Prev1.BackColor = Color.Silver Stop1.BackColor = Color.Silver Next1.BackColor = Color.Silver End Sub Private Sub DefaultToolStripMenuItem_Click(ByVal sender As System.Object, By Val e As System.EventArgs) Handles DefaultToolStripMenuItem.Click 'DefaultMenuStrip______________ ControlStyler Play1.BackColor = Color.Black Prev1.BackColor = Color.Black Stop1.BackColor = Color.Black Next1.BackColor = Color.Black End Sub Private Sub RedToolStripMenuItem2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RedToolStripMenuItem2.Click Play1.BackColor = Color.Red Prev1.BackColor = Color.Red Stop1.BackColor = Color.Red Next1.BackColor = Color.Red End Sub Private Sub WhiteSmokeToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles WhiteSmokeToolStripMenuItem.Click Play1.BackColor = Color.WhiteSmoke Prev1.BackColor = Color.WhiteSmoke Stop1.BackColor = Color.WhiteSmoke Next1.BackColor = Color.WhiteSmoke End Sub Private Sub KhakiToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles KhakiToolStripMenuItem.Click

Play1.BackColor = Color.Khaki Prev1.BackColor = Color.Khaki Stop1.BackColor = Color.Khaki Next1.BackColor = Color.Khaki End Sub Private Sub btnVolume_Click(ByVal sender As System.Object, ByVal e As System .EventArgs) Handles btn_Volume.Click If volume_Panel.Visible = True Then volume_Panel.Hide() Else volume_Panel.Show() End If End Sub Private Sub AquaToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AquaToolStripMenuItem.Click Form2.Playlist.ForeColor = Color.Aqua End Sub Private Sub LimeToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LimeToolStripMenuItem.Click Form2.Playlist.ForeColor = Color.Lime End Sub Private Sub LimeToolStripMenuItem1_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles LimeToolStripMenuItem1.Click Play1.BackColor = Color.Lime Prev1.BackColor = Color.Lime Stop1.BackColor = Color.Lime Next1.BackColor = Color.Lime End Sub Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows. Forms.KeyEventArgs) Handles Me.KeyDown If e.KeyCode = Keys.V Then 'the V schortcut key open VolumeManager control If volume_Panel.Visible = True Then volume_Panel.Hide() Else volume_Panel.Show() End If End If '*************************************************** If e.KeyCode = Keys.P Then 'the P schortcut key open Playlist control If Form2.Visible = True Then Form2.Hide() Else Form2.Show() End If '*********************************************** End If End Sub Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Timer2.Stop() Timer2.Enabled = False 'TEST METHOD_2777_****

'CheckAssociation()_minox player self extension; '**** AMAR TUFO **** Try ChecAssocation() 'Dim file As String = Command$() 'If Not file = "" Then 'File = Replace(File, Chr(34), "") 'ListBox1.Items.Add(file) 'TrackList.Items.Add(file) ' Me.TrackList.Items.Add(file) 'End If 'creating autoMP3 Folder Loader 'maxTime.Text = "00:00" 'curentTime.Text = "00:00" '****************************** volumeBar.Value = 50 MediaPlayer.uiMode = "none" Catch ex As Exception End Try End Sub Private Sub Form1_LocationChanged(ByVal sender As Object, ByVal e As System. EventArgs) Handles Me.LocationChanged End Sub Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs ) Handles Me.Resize Dim f As Form = sender If f.WindowState = FormWindowState.Minimized Then Me.Hide() NotifyIcon1.Visible = True End If End Sub Private Sub NotifyIcon1_MouseDoubleClick(ByVal sender As System.Object, ByVa l e As System.Windows.Forms.MouseEventArgs) Handles NotifyIcon1.MouseDoubleClick Me.Show() Me.WindowState = FormWindowState.Normal NotifyIcon1.Visible = False End Sub Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click Application.Exit() End Sub Private Sub AboutUsToolStripMenuItem_Click(ByVal sender As System.Object, By Val e As System.EventArgs) Handles AboutUsToolStripMenuItem.Click Form2.Show() End Sub Private Sub VToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles VToolStripMenuItem.Click System.Diagnostics.Process.Start("http://visiosoftwaretm.webs.com/") End Sub

Private Sub JoinUsMinoxTMToolStripMenuItem_Click(ByVal sender As System.Obje ct, ByVal e As System.EventArgs) Handles JoinUsMinoxTMToolStripMenuItem.Click System.Diagnostics.Process.Start("http://www.facebook.com/MinoxTM") End Sub Private Sub TextBox1_Click(ByVal sender As Object, ByVal e As System.EventAr gs) Handles Txt_TrackName.Click ' Me.Track.Items.Add(1) End Sub Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.Eve ntArgs) Handles Timer2.Tick Try 'time track duration curentTime.Text = MediaPlayer.Ctlcontrols.currentPositionString maxTime.Text = MediaPlayer.currentMedia.durationString 'this is trackbar component 'trackBarSeekBar.Maximum = MediaPlayer.currentMedia.duration 'trackBarSeekBar.Value = MediaPlayer.Ctlcontrols.currentPosition gTrackBar1.MaxValue = MediaPlayer.currentMedia.duration gTrackBar1.Value = MediaPlayer.Ctlcontrols.currentPosition Catch ex As Exception End Try End Sub Private Sub CLOSEToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles CLOSEToolStripMenuItem.Click Form2.Close() End Sub 'setting light effect on main controls 'setting previousTrack white efect 'effect is enabled using mouseEnter & mouseLeave method Private Sub btn_Prev_MouseEnter(ByVal sender As Object, ByVal e As System.Ev entArgs) Handles btn_Prev.MouseEnter btn_Prev.Image = My.Resources.whitePrevious End Sub Private Sub btn_Prev_MouseLeave(ByVal sender As Object, ByVal e As System.Ev entArgs) Handles btn_Prev.MouseLeave btn_Prev.Image = My.Resources.blackPrevious End Sub Private Sub btn_Pause_Click(ByVal sender As System.Object, ByVal e As System .EventArgs) Handles btn_Pause.Click MediaPlayer.Ctlcontrols.pause() End Sub Private Sub btn_Pause_MouseEnter(ByVal sender As Object, ByVal e As System.E ventArgs) Handles btn_Pause.MouseEnter btn_Pause.Image = My.Resources.whitePause End Sub Private Sub btn_Pause_MouseLeave(ByVal sender As Object, ByVal e As System.E ventArgs) Handles btn_Pause.MouseLeave btn_Pause.Image = My.Resources.blackPause End Sub Private Sub btn_Play_MouseEnter(ByVal sender As Object, ByVal e As System.Ev

entArgs) Handles btn_Play.MouseEnter btn_Play.Image = My.Resources.playBijela End Sub Private Sub btn_Play_MouseLeave(ByVal sender As Object, ByVal e As System.Ev entArgs) Handles btn_Play.MouseLeave btn_Play.Image = My.Resources.playback_play_icon_48 End Sub Private Sub btn_Stop_MouseEnter(ByVal sender As Object, ByVal e As System.Ev entArgs) Handles btn_Stop.MouseEnter btn_Stop.Image = My.Resources.whiteStop End Sub Private Sub btn_Stop_MouseLeave(ByVal sender As Object, ByVal e As System.Ev entArgs) Handles btn_Stop.MouseLeave btn_Stop.Image = My.Resources.blackStop End Sub Private Sub btn_Add_MouseEnter(ByVal sender As Object, ByVal e As System.Eve ntArgs) Handles btn_Add.MouseEnter btn_Add.Image = My.Resources.whiteEject End Sub Private Sub btn_Add_MouseLeave(ByVal sender As Object, ByVal e As System.Eve ntArgs) Handles btn_Add.MouseLeave btn_Add.Image = My.Resources.blackImport End Sub '********************** Private Sub btn_Next_MouseEnter(ByVal sender As Object, ByVal e As System.Ev entArgs) Handles btn_Next.MouseEnter btn_Next.Image = My.Resources.whiteNext End Sub Private Sub btn_Next_MouseLeave(ByVal sender As Object, ByVal e As System.Ev entArgs) Handles btn_Next.MouseLeave btn_Next.Image = My.Resources.blackNext End Sub Private Sub btn_Volume_MouseEnter(ByVal sender As Object, ByVal e As System. EventArgs) Handles btn_Volume.MouseEnter btn_Volume.Image = My.Resources.whiteVolume End Sub Private Sub btn_Volume_MouseLeave(ByVal sender As Object, ByVal e As System. EventArgs) Handles btn_Volume.MouseLeave btn_Volume.Image = My.Resources.blackVolume End Sub 'TEST Private Sub ClearToolStripMenuItem1_Click(ByVal sender As System.Object, ByV al e As System.EventArgs) Try Form2.Playlist.Items.Clear() Form2.PlayList1.Items.Clear() Form2.lblCount.Text = ": " & (Form2.Playlist.Items.Count.ToString) Catch ex As Exception End Try

End Sub Private Sub DeleteToolStripMenuItem1_Click(ByVal sender As System.Object, By Val e As System.EventArgs) Try Form2.Playlist.Items.Remove(Form2.Playlist.SelectedItem) Form2.PlayList1.Items.Remove(Form2.PlayList1.SelectedItem) Form2.lblCount.Text = ": " & (Form2.Playlist.Items.Count.ToString) Catch ex As Exception End Try End Sub Private Sub SaveToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) MsgBox("saveItems:- this method is not yet implemented", MsgBoxStyle.Inf ormation) End Sub Private Sub LoadToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) MsgBox("loadItems:- this method is not yet implemented", MsgBoxStyle.Inf ormation) End Sub Private Sub TrackList_SelectedIndexChanged(ByVal sender As Object, ByVal e A s System.EventArgs) Me.Text = Form2.Playlist.SelectedItem End Sub Private Sub PlaylistToolStripMenuItem_Click(ByVal sender As System.Object, B yVal e As System.EventArgs) Handles PlaylistToolStripMenuItem.Click Try If Form2.Visible = True Then Form2.Hide() Else Form2.Show() End If Catch ex As Exception End Try End Sub Private Sub btn_PlayList_Click(ByVal sender As System.Object, ByVal e As Sys tem.EventArgs) Handles btn_PlayList.Click If Form2.Visible = True Then Form2.Hide() Else Form2.Show() End If End Sub Private Sub btn_PlayList_MouseEnter(ByVal sender As Object, ByVal e As Syste m.EventArgs) Handles btn_PlayList.MouseEnter btn_PlayList.Image = My.Resources.playListWhite End Sub

Private Sub btn_PlayList_MouseLeave(ByVal sender As Object, ByVal e As Syste m.EventArgs) Handles btn_PlayList.MouseLeave btn_PlayList.Image = My.Resources.playListBlack End Sub Private Sub ImportToolStripMenuItem_Click(ByVal sender As System.Object, ByV al e As System.EventArgs) Handles ImportToolStripMenuItem.Click 'Imports an mp3 files into Playlist_________ Timer2.Stop() Timer1.Stop() Dim open As New OpenFileDialog Try open.Title = "Load Music" Form2.lblCount.Text = " " & (Form2.Playlist.Items.Count.ToString) open.FileName = "" open.Multiselect = True open.Filter = "Mp3 Files (*.mp3) |*.mp3" If open.ShowDialog = Windows.Forms.DialogResult.OK Then For Each track As String In open.FileNames Form2.PlayList1.Items.Add(track) Next For Each trackname As String In open.SafeFileNames Form2.Playlist.Items.Add(trackname) Next End If Catch ex As Exception End Try End Sub Private Sub VolumeSettingsToolStripMenuItem_Click(ByVal sender As System.Obj ect, ByVal e As System.EventArgs) Handles VolumeSettingsToolStripMenuItem.Click If volume_Panel.Visible = True Then volume_Panel.Hide() Else volume_Panel.Show() End If End Sub Private Sub AboutToolStripMenuItem_Click(ByVal sender As System.Object, ByVa l e As System.EventArgs) Handles AboutToolStripMenuItem.Click Credits.Show() End Sub Private Sub ThemesAndSkinsToolStripMenuItem1_Click(ByVal sender As System.Ob ject, ByVal e As System.EventArgs) Themes_and_Skins.Show() End Sub Private Sub ThemesAndSkinsToolStripMenuItem_Click(ByVal sender As System.Obj ect, ByVal e As System.EventArgs) Handles ThemesAndSkinsToolStripMenuItem.Click MsgBox("Themes & Skins for MinoxPlayer in developing process", MsgBoxSty le.ApplicationModal) 'Try 'If Themes_and_Skins.Visible = True Then 'Themes_and_Skins.Hide() 'Else 'Themes_and_Skins.Show() 'End If 'Catch ex As Exception 'End Try

End Sub Private Sub volumeBar_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles volumeBar.ValueChanged MediaPlayer.settings.volume = volumeBar.Value Label1.Text = "Volume: " & volumeBar.Value End Sub Private Sub gTrackBar1_MouseDown(ByVal sender As Object, ByVal e As System.W indows.Forms.MouseEventArgs) Handles gTrackBar1.MouseDown Try Timer2.Enabled = False Timer2.Stop() Timer2.Enabled = True Catch ex As Exception End Try End Sub Private Sub gTrackBar1_MouseUp(ByVal sender As Object, ByVal e As System.Win dows.Forms.MouseEventArgs) Handles gTrackBar1.MouseUp Try Timer2.Enabled = False Timer2.Stop() MediaPlayer.Ctlcontrols.currentPosition = gTrackBar1.Value Timer2.Enabled = True Timer3.Enabled = True Catch ex As Exception End Try End Sub Private Sub PlayModeToolStripMenuItem_Click(ByVal sender As System.Object, B yVal e As System.EventArgs) Handles PlayModeToolStripMenuItem.Click Form3.Show() End Sub End Class

S-ar putea să vă placă și