public Form2() { InitializeComponent(); SuspendLayout(); ListItems(Receiver.ReadFromProduct("SELECT * FROM Product;")); List <string> CL = FetchData.AllCategories(); ViewedCategories = new List <CategoriesView>(); timer.Interval = 50; timer.Tick += Timer_Tick; timer.Start(); foreach (string s in CL) { CategoriesView C = new CategoriesView(s, Categories, this); ViewedCategories.Add(C); } ResumeLayout(); }