Ejemplo n.º 1
0
        private void FLPSettings_Resize(object sender, EventArgs e)
        {
            int scrollsize = start ? 24 : 6;

            FLPSettings.SuspendLayout();
            for (int i = 0; i < FLPSettings.Controls.Count; i++)
            {
                FLPSettings.Controls[i].Width = FLPSettings.ClientSize.Width - scrollsize;
            }
            FLPSettings.ResumeLayout();
            start = false;
        }
Ejemplo n.º 2
0
        private void FLPSettings_Resize(object sender, EventArgs e)
        {
            int scrollsize = start ? 24 : 6;

            FLPSettings.SuspendLayout();
            foreach (Control C in FLPSettings.Controls)
            {
                if (C is Label)
                {
                    C.BackColor           = SystemColors.Highlight;
                    C.ForeColor           = SystemColors.HighlightText;
                    (C as Label).AutoSize = false;
                }
                C.Width = FLPSettings.ClientSize.Width - scrollsize;
            }
            FLPSettings.ResumeLayout();
            start = false;
        }