Visual Basic - MP3 Player

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

<FORM1.

VB CODE>

Public Class Form1


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()
End Sub
Private Sub OpenFileDialog1_FileOk(ByVal sender As System.Object, ByVal
e As System.ComponentModel.CancelEventArgs) Handles
OpenFileDialog1.FileOk
For Each track As String In OpenFileDialog1.FileNames
ListBox1.Items.Add(track)
Next
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
AxWindowsMediaPlayer1.Ctlcontrols.play()
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
AxWindowsMediaPlayer1.Ctlcontrols.stop()
End Sub
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button4.Click
AxWindowsMediaPlayer1.Ctlcontrols.pause()
End Sub
Private Sub TrackBar1_Scroll(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles TrackBar1.Scroll
AxWindowsMediaPlayer1.settings.volume = TrackBar1.Value()
Label2.Text = TrackBar1.Value
End Sub

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As


System.Object, ByVal e As System.EventArgs) Handles
ListBox1.SelectedIndexChanged
AxWindowsMediaPlayer1.URL = ListBox1.SelectedItem
TextBox1.Text = ListBox1.SelectedItem
End Sub
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button5.Click
ListBox1.Items.Remove(ListBox1.SelectedItem)
End Sub
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button6.Click
Color_Settings.Show()
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
AxWindowsMediaPlayer1.settings.volume = 100
End Sub
Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button7.Click
Me.Close()
End Sub
End Class

<COLORSETTINGS. VB CODE>

Public Class Color_Settings


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form1.ColorDialog1.ShowDialog()
Form1.ListBox1.BackColor = Form1.ColorDialog1.Color
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Form1.ColorDialog2.ShowDialog()
Form1.BackColor = Form1.ColorDialog2.Color
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button3.Click
Form1.ColorDialog3.ShowDialog()
Form1.ListBox1.ForeColor = Form1.ColorDialog3.Color
Form1.Label1.ForeColor = Form1.ColorDialog3.Color
Form1.Label2.ForeColor = Form1.ColorDialog3.Color
End Sub
End Class

Music has been a part of every young ones life,


especially teenagers. It helps people connect with their inner
feelings whether its about love, happiness, anger or sadness,
music can help in many ways. For teenagers, music
frequently provides a means of identifying or labeling certain
emotions. In music with lyrics, teenagers may identify with
expressed emotions of happiness and sadness, or with
sociological or political themes. Music has been a great
foundation in everybodys lives ever since it was discovered.
Since, playing and hearing music has come a very long
way since innovation begun some years ago. It became more
convenient and digital. It became more available in terms of
innovation and portability to many people who like hearing
their favorite songs over and over again. MPEG-1 or MPEG-2
Audio Layer III, more commonly referred to as MP3 is a music
file format that is a compressed sound sequence into a small
file, which we all know the smaller the file is the more songs
we can put into our phones or media players, media players
have been a very appreciated application or program in some
of our lives, because where else would we play our beloved
music if we did not have media players specifically Mp3
players.
Thats why we decided to do a simple customizable yet
personal Mp3 Player, which can play music as much as you
want it to. It has features the same as a Windows Media

Player but much better, much colorful, and, more fun as My


Little Mp3 Player.

ColorSettings.vb [Design]

Form1.vb
[Design]

You might also like