Exception:
Object reference not set to an instance of an object.
Code:
For Each p As Panel In Me.Controls.OfType(Of Panel)()
arr.Add(p.BackColor.ToString())
Me.Controls.Remove(p)
Next
The line:
arr.Add(p.BackColor.ToString())
How can I fix this thing?