Music Player - Playlist - Split The Filelocation From The Filename In The Listbox?

Jun 22, 2009

I got some music player from the web, a cool one, and i tried to add him a playlist. i`ve change the entier interface.

I have like this
- play botton
- pause botton
- stop button
- TrackBar for song
- timer for song lenght
- a volume
- a button for PLAYLIST.

This code is for Play:

Private Sub PlaySong()
If (PlayerControl.URL <> "") Then
PlayerControl.Ctlcontrols.play()

[CODE]...

It's actualy a shortcut for the button event. It checks if Url isn't empty, and if it isn't, start playing the song from that url. This is the code of the play button:

Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click
PlaySong()
End Sub

Now i`m gonna talk about the Playlist button. When you enter the exe, the playlist is Visible, when you press the button it's hidden and so on.(it's made with if then condition).

The playlist it's actualy a ListBox called lplst and has some buttons:
- Add
- Delete
- Save
- Load
- Clear

I`m gonna talk about the Add button. This button pops up a dialog box to open mp3 files to that FIleBox. And it get's ONLY the FILENAME! (without the URL or Location of it) This is the code for the Add button:

Private Sub ToolStripButton7_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton7.Click
Dim openfile As New OpenFileDialog

[CODE]...

Before , the Add button was adding JUST the location (example: C:\blabla.mp3) and when i selected it and click play, it was playing the song. But now i wanted to show only the file name. I got some code on the listbox change too.

Private Sub lplst_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lplst.SelectedIndexChanged
PlayerControl.URL = lplst.SelectedItem
End Sub

This code changes the URL that plays. Depends what is the selecteditem. i browsed all the web , and i couldn't find anything.

Now the problem: I can change the Add button like this:

Private Sub ToolStripButton7_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton7.Click
Dim openfile As New OpenFileDialog

[CODE]...

And this will link me like this: Filename - Filelocation.

But now the PlayerControl.URL = lplst.SelectedItem. code won't run the mp3 file from that location. How do i have to split the Filelocation from the Filename in the listbox?

View 10 Replies


ADVERTISEMENT

Made A Mp3 Music Player - Save And Load With Openfiledialog And Listbox?

Jul 17, 2010

i made a mp3 music player and i used listbox to let the users see what songs they have added but i want them t be able save and load their song list. How can i do that?

View 11 Replies

Using A M3u (playlist) In Player?

Jan 24, 2012

I have the entire bible in audio. Lets start with Matthew. Matthew has 28 seperate mp3 chapters I have converted to wav for my app. They work fine. However, I wish to somehow use the Matthew.m3u (playlist) which "includes" or "points to" the entire 28 chapters. I want to do this so the user does not have to keep clicking to get to the next chapter, ie. chapter 3...click to chapter 4. I want it to just play from chapter 1-28 then stop.

View 4 Replies

Mp3 Player Auto Next Playlist

Jul 6, 2009

im having trouble with some code for a mp3 player program. i want to have a listbox with file paths of mp3's (eg. "c:/users/quatz/music/song1.mp3, c:/users/quatz/music/song2.mp3" ect. in the list) and a windows media player control. i have every thing else "down pat" but i want to find a way to autoplay the next song in the listbox once the first song has stopped playing i am using vb2008 express

View 13 Replies

Create Playlist For Shockwave Player?

Apr 11, 2010

i want to play multiple swf files in a single shockwaveflash object instance one after other as a playlist..

so how can i create a playlist for shockwaveobject...in vb.net

View 1 Replies

Get A Playlist To Burn In Media Player?

Jan 23, 2009

trying to get a playlist to burn in media player. I have the playlist going into media player but cant get it to burn using the burnplaylist property and start burn method.

View 1 Replies

Load Files From A Playlist To Play In The Player?

Oct 10, 2009

I have a media player in which I would like to load files from a playlist to play in the player.

Dim song As String
Dim i As Integer
Dim ItemCount As String

[Code]....

I have managed to get the songs from the playlist into the listbox but using the for loop above it it only play the first song in the list.

Is there some code I can use in the for loop to tell it to wait until the song is finished playing before is processes the next iteration.

View 1 Replies

Rename Playlist List In Media Player?

Mar 10, 2011

lisbox1 = playlist.m3u
listbox2 = playlist list
how to rename my playlist list? example.
playlist.m3u ------item.mp3
item2.mp3

how to rename item.mp3 and saved it automatically when i click enter.

View 4 Replies

Show The Playlist In Windows Media Player?

May 28, 2007

i used Windows Media control to play sound files as .mp3, .wma...and create a playlist.i want to show the playlist in windows media player!how can i do that?

View 3 Replies

Windows Media Player Playlist Laggy Between Items

Feb 5, 2010

Is there anyway to prevent the laggy transition between items on a playlist?

I made a simple test project where it is only the AxWindowsMediaPlayer1 on the form, and it launches a playlist (*.wpl file) but between each item it is very laggy and my mouse hangs up until it is done transitioning.

It is running on a Core 2 Duo, and the items in the playlist are only images... and there is no other software on my Dev pc (Win 7) other than Visual Basic 2008.

I did notice that running the playlist in WMP did the same thing. Does anyone else experience this same thing?

load the next item into memory or something?

View 1 Replies

Making A New Playlist And Playinig It In Windows Media Player From VB 2005?

Apr 26, 2011

How do I make a new playlist and play it in Windows Media Player from VB 2005? This is what I have thus far. I do not know how to dimension "player":

Imports System.IO
Imports wmplib
Public Class Form1
Dim Playlist As IWMPPlaylist = Nothing

[code]....

View 9 Replies

VS 2010 - Playlist / Playing MP3 From WebBrowser To Inbuilt Media Player

Sep 9, 2011

I have read through quite a few tutorials and videos and I am building my application quite good now, I have a webbrowser control that has a bunch of links from my website (MP3 files) now, how would I open a link and play it in my inbuilt MP3 player? When I click a link it plays in windows media player.. I want it to play the file in my app. I have a Webbrowser, a windows media player and listview, basicly I want to add the mp3 to open in the listview and be able to play it in my player, how is this possible?

View 5 Replies

Make Music Player With VB 2008?

Jul 20, 2009

this is my first post. I just recently got vb and wish to learn a lot about it but I have no references...(book, good tutorial etc) I have always wanted to make applications for computers ever since I got on one 5-6 years ago. (I know you need code but I have no idea where to start. But, I am a fast learner.)

[Code]...

View 6 Replies

Put A Music Player On My Windows Form App?

Jul 12, 2009

Ok. I want to put a Music Player on my Windows Form App. I have the control on the form but i don't know which Import to use or how to get it to play the music I have on my computer.

View 3 Replies

TreeView Music Player - How To Rip And Burn CDs

Aug 29, 2011

I have written a hierarchical treeview music player that reflects the organisational structure of the music files on your disk drive. I just need to know how to rip and burn Cds using VB.net (without using any dependencies if possible). So far in my multi-media project, the only dependency currently is LAME.EXE for converting wave files to MP3 files - and even that dependency will go if I can successfully convert certain C++ listings to VB.

View 2 Replies

Music Player - How To Move Trackbar Button

Jan 31, 2010

I making an music player with a trackbar who gets oppdated while the music is playing. My problem is that I have to move a the trackbar button.

This is my code:
Dim TotalSeconds As Long = CLng(Form1.Player.TotalTime) ' 274445
Dim CurrentSecond As Long = Form1.Player.CurrentTime ' 10497
' maxp is the maximum x location on my bar
Dim nyp As ULong = CULng(((TotalSeconds / maxp) - CurrentSecond))
TB.Location = New Point(CInt(nyp), 11)
Why is it return INF?

View 2 Replies

VS 2008 Making A Music Player (STUCK!)

Feb 18, 2011

im making a Music Player in VS 2008 and everything is basicly working perfectly as i want, however i seem to be stuck at the "Pause/resume button"

so my question is, in the Windows Media player COM Components, is there a code for Resuming the current state on the Mp3 file and id assume it would be resume,[code..]

View 6 Replies

Open A Music File In Windows Media Player From?

Feb 20, 2007

Is possible - to open a music file in Windows Media Player from a visual basic program?

If i had 'track1.mp3' for example, does anyone know how to open this from visual basic in windows media player?

View 6 Replies

Make A Gravity Application (with Speed Readings/music Player) For The Car?

Jun 3, 2012

I'm trying to make a gravity application (with speed readings/music player) for in the car.So I've found some sample code to create an event handler in C#, except I don't know any C#. This is the code to add an eventhandler:

motion.CurrentValueChanged += new EventHandler<SensorReadingEventArgs<MotionReading>>(motion_CurrentValueChanged);

How do I do this in VB.NET? as there is no CurrentValueChanged...

View 8 Replies

VS 2010 Make A Music Player That Will Play A Song In The .exe Format

Oct 1, 2010

What i want to do is make a music player that will play a song in the .exe format, so an app will open and automatically play a song. This is to prevent ripping and copyright issues. I made a app using the WMP Com Component but that of course requires the file to be opened.

View 2 Replies

Playlist Is A Listbox?

Sep 23, 2010

been off working on a media player for a bit of time now.what I am up against is for sure giving me heck I have 2 listoxes for my wmp media player that I am using as a playlist.Listbox1 is invisible to the user, and is only there to hold the file paths of songs in the listbox.Listbox 2 is showing only the name of the songs ..not the paths.

now everything is going along as it should be except for when i try to get my player to go from the last song of the list to the beginning song of the list. It will skip the last song...and the first song...(lol) and start playing at the second song of the list *sigh*I have been going round and round with this problem for several days now and am just about ready to shoot the freakin thang can anyone give me a hand here?here is the code I have that is for the "play All" this code is set on a timer

[Code]...

View 14 Replies

Asp.net - Split The Filename So That Can Put It Into 3 Separate Strings?

Apr 12, 2012

I am uploading files to a directory and I am also just getting the file itself not the directory and the folders. For example I am getting only this 6122002_Abstract_9-11-07.pdf by using this code hpf.FileName.Substring(hpf.FileName.LastIndexOf("") + 1). What I want to do is separate out the 6122002, the Abstract, and the date which is 9-11-07 so I can insert it into a sql database.

View 2 Replies

Import MP3s Into A ListBox And Have That As Playlist?

Jul 25, 2009

I am currently setting up my own media player and so far there is only one thing that is making me very unhappy/frustrated. I have searched google so much and still couldn't find the solution. Here is my problem. I'm trying to import MP3s into a ListBox and have that as my playlist using this code:

For Each Song As String In Import.FileNames
playlist.items.add(Song)
Next

The only problem with this code is that it displays the song's full path in the list box. What I'm trying to do is just bring in the name of the MP3 without showing the path and still have the song play.

[Code]...

View 12 Replies

VS 2008 Create Listbox Playlist?

Mar 11, 2010

I have a form with a Listbox.In the listbox is a list of files in a certain directory with one extension (*.mp3)I'm using this code for that:

Dim folderInfo As New IO.DirectoryInfo("C:Windows")
Dim arrFilesInFolder() As IO.FileInfo
Dim fileInFolder As IO.FileInfo

[code].....

View 4 Replies

How Can Make A 'save Listbox Items As A Playlist

Jul 22, 2010

I am trying to make a 'save listbox items as a playlist' sort of thing, and I can't seem to get my code to work. Here is the exact code:[code...]

View 4 Replies

Get Filename, Filesize And Created Time In A Listbox?

Sep 14, 2009

I have a listbox that reads a certain folder and lists all the files in the folder in the listbox! This works great! but i also want to list the file size and created time of the files on the same row.Here is my code.

Dim di As New IO.DirectoryInfo("C: est")
ListBox1.DataSource = (di.GetFiles)

View 7 Replies

VS 2010 : Get Filename Into The Listbox Without The Full Path Of The File?

Oct 9, 2010

I have a site that has files that i want to list in a listbox.

[URL]

so i would like to take test.txt, and insert it into the listbox. how can i get that filename into the listbox without the full path of the file?

View 6 Replies

Music Studio - Real Music Video Where Can Play Many Sound At Any Time

Nov 1, 2011

Hey guys, I'm a new guy in VB.NET. I am proposing my final year project a title called music studio. My version of music studio is like real music video where we can play many sound at any time. For example, the application that I want to build can create many button and also add an audio along with it. And then, when we hit the 1st button, it play 1st audio. while 1st audio play, we also can hit 2nd button and 2nd audio is playing. for example, 1st audio is sound of man walking, and then 2nd audio is the sound of glass break. lastly 3rd sound sound of police siren play. Is it cool? so, my question is, is it possible the I can build an application by using VB.NET?

View 6 Replies

Listbox Split To Textbox?

Jan 17, 2011

i have 1 listbox and 10 textbox on my form in the listbox there is 40 names is there anyway i can click a button and add line one of the listbox to textbox 1 and line 2 of the listbox to textbox 2 and etc. and also remove each line from the listbox after added to the texbox.

View 1 Replies

Split Textbox To Listbox In Vb8?

Apr 13, 2012

i want to split textbox to listbox

example place a question mark in the place where you want to fill the number. if you want fill series like 1spider 2spider then type ?spider in textbox in the series box and type the from number and to number in the boxes

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved