Custom Control Properties aren't persistent

  • Thread starter Thread starter Shacker
  • Start date Start date
S

Shacker

Hi,

I've written a custom control that has 6 labels and 3 properties. The
properties are of type ENUM so they show up as a drop list when the
control is dropped on a form. I choose a value for each property and
the labels reflect that (works great during design time).

The problem is that when I drop the control on a form and set the
properties, they show up as default values during runtime. In other
words, the values of the properties don't stick.

If I change the property type to STRING instead of ENUM, that seems to
work.

What am I doing wrong?

Thanks!
 
Rakesh,

I'll try this as soon as I get to the office this morning. From other
posts, it seemed that simply moving the ENUM outside the class should
have worked but obviously not (in my case, at least!).

I'll keep you posted.

Thanks!!
 
Back
Top