C# 在FlowLayoutPanel中操作动态添加的控件

C# 在FlowLayoutPanel中操作动态添加的控件,c#,dynamic,size,controls,flowlayoutpanel,C#,Dynamic,Size,Controls,Flowlayoutpanel,我正在尝试创建一个可选的滚轮,其中FlowLayoutPanel中选定的子对象的大小将增加 动态创建FlowLayoutPanel后,如何增加对象内部的大小 class CustomFlowLayout : FlowLayoutPanel { public List<Node> ChildList = new List<Node>(); Node SelectedNode = new Node(); public CustomFlowLayou

我正在尝试创建一个可选的滚轮,其中
FlowLayoutPanel
中选定的子对象的大小将增加

动态创建
FlowLayoutPanel
后,如何增加对象内部的大小

class CustomFlowLayout : FlowLayoutPanel
{

    public List<Node> ChildList = new List<Node>();
    Node SelectedNode = new Node();

    public CustomFlowLayout(){ }

    //
    //Methods
    //
    public void DrawList()
    { 
        if (this.ChildList.Count == 0)
        {
            MessageBox.Show("No Systems found");                
        }
        else
        {
            SelectedNode = ChildList[0];
            for (int i = 0; i < ChildList.Count; i++)
            {
                PictureBox CurrentPic = new PictureBox();
                CurrentPic.Name = ChildList[i].Name;
                CurrentPic.Width = 400;
                CurrentPic.Height = 200;            
                CurrentPic.Image = ChildList[i].NodePicture;
                this.Controls.Add(CurrentPic);
            }                                                                      
        }//end else
    }//end DrawList()
}//end Class

-你最好不要浪费时间重新发明轮子。只需使用一个
ElementHost
,今天到此为止。我感谢您让我查看了它,它看起来真的很有用。然而,我希望了解轮子是如何发明的。我正在努力教自己如何做这类事情,只是在寻找一些关于结构、.NET元素等方面的指导。我想知道如何为自己做这件事
namespace Nostalgia{
class Node 
{
    public bool isSelected = false;
    public string Name;
    public Bitmap NodePicture;
    public int ListPosition;
    //
    //Constructors
    //
    public Node() { }
}