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
senderobjectThe source of the event, typically the control whose size has changed.
eEventArgsAn EventArgs instance containing the event data.
Remarks
Derived classes can override this method to provide custom behavior when the control's size changes.