how to add runtime created playlist in designer code at runtime
<p>hello i m developing media player in c# and after creating and saving the playlist now i want to move towards to show that created list at run time. i am able to show the playlist name but when i exit and again run the program the playlist is not that.    </p>

<p>i want that all the created playlist will be shown every time i run program for that i have to   add the run time created playlist in the designer code in Initialize components() method at run time.  </p>

<pre><code> public string fnm;

    Form1 m_parent;
    public Form2(Form1 frm1)
    {
        InitializeComponent();
        m_parent = frm1; 
    }
    #region CreatePlayList
    private void CreatePlayList()
    {
        // Open a file to write
        string sFileName = txtFilename.Text;
        FileStream fs = File.Create(sFileName);
        sw = new StreamWriter(fs);

        try
        {
            sw.WriteLine("&lt;?wpl version=\"1.0\"?&gt;");    // File Header
            sw.WriteLine("&lt;smil&gt;");                     // Start of File Tag

            sw.WriteLine("\t&lt;head&gt;");                     // Playlist File Header Information Start Tag
            sw.WriteLine("\t\t&lt;meta name=\"Generator\" content=\"Microsoft Windows Media Player -- 12.0.7600.16385\"/&gt;");
            sw.WriteLine("\t\t&lt;author&gt;" + txtAuthor.Text + "&lt;/author&gt;");
            sw.WriteLine("\t\t&lt;title&gt;" + txtTitle.Text + "&lt;/title&gt;");
            sw.WriteLine("\t&lt;/head&gt;");                    // Playlist File Header Information End Tag

            sw.WriteLine("\t&lt;body&gt;");                     // Start of body Tag
            sw.WriteLine("\t\t&lt;seq&gt;");                      // Start of filelist Tag


            // Get Directory's File list and Add files
            DirectoryListing(txtDir.Text);



            sw.WriteLine("\t\t&lt;/seq&gt;");                      // End of filelist Tag
            sw.WriteLine("\t&lt;/body&gt;");                    // End of body Tag
            sw.WriteLine("&lt;/smil&gt;");                    // End of File Tag
            fnm = Path.GetFileName(sFileName);
            sFileName = sFileName + " Successfully created.";

            MessageBox.Show(sFileName, "Create Playlis");

            LinkLabel lbl = new LinkLabel();
            lbl.Text = fnm;
            lbl.Location = new Point(500, 30);
            m_parent.Controls.Add(lbl);


        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message, "Create Playlist: Error");

            sFileName = sFileName + " Unsuccessful.";

            MessageBox.Show(sFileName, "Create Playlis");
        }
        finally
        {
            sw.Close();
            fs.Close();
        }
    }

    #endregion
</code></pre>

<p>this is my code..any one can help me??</p>
