Alsing.Windows.Forms.InfoTipForm.DoResize C# (CSharp) Method

DoResize() private method

private DoResize ( ) : void
return void
        private void DoResize()
        {
            int w = InfoText.Left + InfoText.Width + 8;
            if (Count > 1)
            {
                w += pnlSelect.Width;
            }
            if (picIcon.Image != null)
            {
                w += pnlImage.Width;
            }


            int h = InfoText.Top + InfoText.Height + 6;
            if (Image != null && Image.Height + picIcon.Top*2 > h)
                h = Image.Height + picIcon.Top*2;

            ClientSize = new Size(w, h);
        }