I have a basic form that almost all forms inherit from it and this basic form have 7 buttons (so all "child" forms have it)
it all worked fine but today I'm getting this error on all inherited buttons the error is
An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll
Additional information: 'child' is not a child control of this parent.
on inherited buttons
this.Controls.SetChildIndex(this.button, 0);
in the auto generated code in the designer.cs
I didn't change a bit in the base form designer since yesterday
I have tried to create new buttons with the same name - did not help and when I comment the relevant line, the button don't response