Custom Control Properties aren't persistent

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!
 
S

Shacker

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!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top