private void UpdateSize() { int height = NativeMethods.SendMessage(this.Handle, NativeMethods.RB_GETBARHEIGHT, 0, 0); this.Height = height + 1; }