In a Form Window you have in the upperright corner, Minimize, Maximize and the other red control that you close the Form with.

I wonder what this control is named and if it is possible to put code inside this control.
Because if I doubleclick on it, I doulbeclick on the Form and the Form_Load event is shown.