He believed that poor design allowed other classes to modify the internal form controls. The form should be responsible for all components. You should never post any internal controls. He also considered it bad practice for a child form to have a link to the parent form.
An appropriate way to approach this problem is through events. The detailed form Form2 should define a public event:
public event Action<int> TrackBarMoved;
Form2 can trigger this event when moving the track and pass the position of the track panel as a parameter (if it makes sense to transfer something else, for example, the zoom level or something else you want, this is also good).
Form1 can subscribe to this event when creating From2 and change the image scale (internally, from within Form1 ) depending on the position of the track panel.
source share