Method OnSizeChanged
OnSizeChanged(object?, EventArgs)
Handles the size change event for the control and updates its bounds accordingly.
protected virtual void OnSizeChanged(object? sender, EventArgs e)
Parameters
sender
objectThe source of the event, typically the control whose size has changed.
e
EventArgsAn EventArgs instance containing the event data.
Remarks
Derived classes can override this method to provide custom behavior when the control's size changes.