Custom WebControl, values list

G

Guest

working on a Custom WebControl. I want to add a property, lets call it FOO
and I want a custom list of possible values for the designer and for usage
"BAR,BANG,GU" (you get the idea).

I know how to add the property, and how to get it into the designer, but I
dont know how to have it display a custom list in the designer of values.

Thanks
 
G

Guest

If your list is static (not dynamic) then create an enumerator and make the
property of type your enumerator. That should do the trick.
 

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

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,367
Latest member
mahdiharooniir

Latest Threads

Top