例外:
Object reference not set to an instance of an object.
代码:
For Each p As Panel In Me.Controls.OfType(Of Panel)()
arr.Add(p.BackColor.ToString())
Me.Controls.Remove(p)
Next
该行:
arr.Add(p.BackColor.ToString())
我该如何解决这个问题?