You're probably missing the
<DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)>
attribute on your controls properties that you want the designer to write code for.
Add this attribute to every property that you want design-time value support for and the designer will generate code for it.