CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 22

Threaded View

  1. #1
    Join Date
    Mar 2012
    Posts
    99

    serialization question

    I am making a media player using a windows form application project in mircosoft visual studio. So far I am able to display songs in a listbox,play, pause etc and now I want to be able to make playlists for the songs. I have two forms - one with buttons to play, pause stop all the songs, and display the songs and the second is for making the playlists. In the playlist form there is two listboxs - one with a list of the songs in the playlist and the second for the songs you add to the playlist. theres is also an add button and remove button and a textbox to put the name of the playlist in. And finally a create button. So I need a bit of help creating the playlist. heres the code I have so far for the create button:
    Code:
    private void button1_Click(object sender, EventArgs e) //create playlist
            {
                Playlist temp = new Playlist(textBoxPlaylist.Text); 
                foreach(string name in PlaylistTracks.Items)
                {
                    temp.addSong(name);
               
                }
    
            }
    so far nothing happens when I click the button. I need the playlist to save the songs in the listbox and the name in the textbox. I also have a listbox in the first form that I want to populate with the names of the playlists that have been created. Not sure what code to use to do that.
    Hope I explained all this enough
    Last edited by beginner91; March 24th, 2012 at 02:52 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured