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.

I think I found an event for this that worked.

Form_FormClosing
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.