I'm trying to add an object to this.Controls, using this.Controls.Add()
on a Panel object.
When I'm trying to do so, an ArgumentException is thrown. According to
MSDN, an ArgumentException is thrown by ControlCollection.Add() if the
child parameter does not specifiy a control.
If I catch the exception, and read out the Type of the object I added
(using GetType() ), I'm getting System.Windows.Forms.PictureBox (as
expected).
What am I missing here?