create enumerated property for custom control

Discussion in 'ASP .Net Building Controls' started by Sergey Poberezovskiy, Nov 7, 2005.

  1. Hi,

    I want to create a property that can only accept values from my custom list.
    Say
    1, 5, 10, 15, 20, 30.

    I know I can easily create an enumeration with values set to those from my
    list, and have the Visual Studio designer display a list of enumerated
    strings shown in the property.
    What I want is a list of values shown in the IDE - and I have no idea how to
    do that...

    Any help is greatly appreciated.
    Sergey Poberezovskiy, Nov 7, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Rex the Strange

    Enumerated type in a custom control tag

    Rex the Strange, Jul 25, 2008, in forum: ASP .Net
    Replies:
    3
    Views:
    487
    Rex the Strange
    Jul 25, 2008
  2. Matt Sokol
    Replies:
    2
    Views:
    375
    Theo Tillotson
    Aug 7, 2003
  3. Rob Joosen

    Keep custom property-value in custom rendered control

    Rob Joosen, May 12, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    138
    Rob Joosen
    May 12, 2004
  4. Sergey Poberezovskiy

    create enumerated property for custom control

    Sergey Poberezovskiy, Dec 29, 2005, in forum: ASP .Net Building Controls
    Replies:
    6
    Views:
    173
    Sergey Poberezovskiy
    Dec 30, 2005
  5. anon
    Replies:
    0
    Views:
    208
Loading...

Share This Page