I am trying to create a selectable scroll wheel where the selected child object in a FlowLayoutPanel
is increased in size.
How can I increase the size of an object inside the FlowLayoutPanel
after it is created dynamically?
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
Node class
namespace Nostalgia{
class Node
{
public bool isSelected = false;
public string Name;
public Bitmap NodePicture;
public int ListPosition;
//
//Constructors
//
public Node() { }
}