private void TextBoxBase_SizeChanged (object sender, EventArgs e) { if (IsHandleCreated) CalculateDocument (); }