i get variable not defined on the line:

MaxLength = PropBag.ReadProperty("MaxLength", "")

within

UserControl_ReadProperties