void tsMarket_Resize(object sender, EventArgs e) { float width = (tsMarket.ClientSize.Width - tsbtnCharges.Width - 18) / 100.0F; tscbSymbol.Width = (int)(49 * width); tscbPeriod.Width = (int)(51 * width); }