public static void FillToRight(this Control control, int offset = 0) { if (control.Parent == null) return; control.Width = control.Parent.Width - control.Location.X - offset; }