h1.post-title { color:orange; font-family:verdana,Arial; font-weight:bold; padding-bottom:5px; text-shadow:#64665b 0px 1px 1px; font-size:32px; } -->

Pages

Adjust Width CheckBoxList using C#.net

 private void checkBoxlistWidht(CheckedListBox chk)
        {
            System.Drawing.Graphics g = chk.CreateGraphics();
            float maxwidth = 0f;
            foreach (object o in chk.Items)
            {
                float w = g.MeasureString(o.ToString(), chk.Font).Width;
                if (w > maxwidth)
                    maxwidth = w;
            }
            g.Dispose();
            chk.Width = (int)maxwidth + 30;
        }