FECipherVit.FECipherVit.SetControlSize C# (CSharp) Method

SetControlSize() private method

private SetControlSize ( ) : void
return void
        private void SetControlSize()
        {
            Height = (int)(Height + ClientRectangle.Height * (ratio - 1));
            Width = (int)(Width + ClientRectangle.Width * (ratio - 1));

            foreach (Control control in Controls)
            {
                control.Left = (int)(control.Left * ratio);
                control.Top = (int)(control.Top * ratio);
                control.Height = (int)(control.Height * ratio);
                control.Width = (int)(control.Width * ratio);
                //if (control is TextBox || control is Button || control is MenuStrip)
                //{
                //    control.Font = new Font(control.Font.FontFamily, (int)(control.Font.Size * ratio));
                //}
            }
            buttonMsgSend.Height = textBoxMsgSend.Height + 2;
            buttonMsgSend.Top = textBoxMsgSend.Top + textBoxMsgSend.Height / 2 - buttonMsgSend.Height / 2;
        }
FECipherVit