Adding GUI controls dynamically

I am facing a problem adding a panel, two buttons in a scrollable (through another panel) group box. I am not good in adding UI elements without the designer, so naturally, I've got a cluttered interface that doesn't work the way intended.

Here is the code:

    private void client_DownloadFileCompleted(object sender, 
        System.ComponentModel.AsyncCompletedEventArgs e)
    {
        LinksParser<Track>.Results.Foreach<Uri, Track[]>(
            new Action<Uri, Track[]>( // this is an extension method
        delegate(Uri key, Track[] value)
        {
            GroupBox GB = new GroupBox()
            {
                Text = key.AbsoluteUri,
                Size = new Size(550, value.Length * 30),
                TabIndex = 0,
                TabStop = false
            };
            flwLayout.Controls.Add(GB); // flwLayout already created by designer
            Panel GB_panel = new Panel()
            {
                Size = GB.Size,
                TabIndex = 0,
                TabStop = false,
                Location = GB.Location,
                AutoScroll = false
            };
            VScrollBar VS = new VScrollBar() { Dock = DockStyle.Right };
            VS.Scroll += (_sender, _e) => GB_panel.VerticalScroll.Value = VS.Value;
            if (LinksParser<Track>.Results[key] == null)
            {
                GB.Controls.Add(new Label() { Text = "No tracks were found" });
            }
            else
            {
                for (int index = 0; index < 1; ++index)
                {
                    Track track = value[index];

                    Panel panel = new Panel()
                    {
                        BorderStyle = BorderStyle.FixedSingle,
                        Location = new Point(GB.Bounds.X + 6,
                             GB.Bounds.Y + 15 + (40 * index)),
                        Size = new Size(525, 40),
                        TabIndex = 0,
                        TabStop = false
                    };

                    Label lblTrack;
                    Button playOnline;

                    lblTrack = new Label()
                    {
                        Text = track.Name,
                        AutoSize = true,
                        TabIndex = 0,
                        Location = new Point(panel.Bounds.X + 6, panel.Bounds.Y)
                    };

                    playOnline = new Button()
                    {
                        Text = "Play Online",
                        TabIndex = 2,
                        Size = new Size(75, 23),
                        UseVisualStyleBackColor = true,
                        Location = new Point(
                            TextRenderer.MeasureText(lblTrack.Text,
                            lblTrack.Font).Width +
                            lblTrack.Bounds.X + 5, panel.Bounds.Y - 5)
                    };

                    playOnline.Click += delegate
                    {
                        track.PlayOnline();
                    };

                    panel.Controls.Add(lblTrack);
                    logger.Trace("Attached lblTrack at {0}", lblTrack.Location);
                    panel.Controls.Add(playOnline);
                    logger.Trace("Attached playOnline at {0}", playOnline.Location);

                    GB_panel.Controls.Add(panel);
                    logger.Trace("Attached panel at {0}", panel.Location);
                }
            }

            GB_panel.Controls.Add(VS);
            GB.Controls.Add(GB_panel);

        }));
    }

Here is what I get: Not so nice.

Here is what I want: Displays all tracks found.


ANSWERS:


Thanks to Idle_Mind, his advice about using UserControls (which I hadn't heard of until he pointed out) helped me dissect the problem into smaller parts and figured out that the size of a panel has to absorb its controls, so according to the answer of that question, I used a FlowLayoutPanel instead, and all controls appeared appropriately.

Here is the final form, if anyone's interested: enter image description here



 MORE:


 ? trying to add/remove controls to a form
 ? removing dynamically created controls C#
 ? Add columns to a datatable in c#?
 ? ASP NET - C#: Access controls by Id
 ? Add a bunch of controls dynamically to screen in iOS
 ? Can't dynamically add new literal to ASP.NET Panel Control
 ? Add dynamic ASP.NET controls via a DropDownList to the page
 ? WinForm: control won't add to a panel
 ? ASP.NET refresh Update Panel
 ? Create textbox dynamically without postback