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. Advertisements

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. TS
    Replies:
    5
    Views:
    529
    Steven Cheng[MSFT]
    Jul 6, 2007
  2. Rex the Strange

    Enumerated type in a custom control tag

    Rex the Strange, Jul 25, 2008, in forum: ASP .Net
    Replies:
    3
    Views:
    556
    Rex the Strange
    Jul 25, 2008
  3. AleXmanFree
    Replies:
    3
    Views:
    825
    Hillbilly
    Oct 9, 2008
  4. Matt Sokol
    Replies:
    2
    Views:
    629
    Theo Tillotson
    Aug 7, 2003
  5. Rob Joosen

    Keep custom property-value in custom rendered control

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

    create enumerated property for custom control

    Sergey Poberezovskiy, Dec 29, 2005, in forum: ASP .Net Building Controls
    Replies:
    6
    Views:
    275
    Sergey Poberezovskiy
    Dec 30, 2005
  7. Jeremy Chapman

    Custom control with complex property type (System.Web.UI.Control[])

    Jeremy Chapman, Feb 15, 2006, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    270
    Jeremy Chapman
    Feb 15, 2006
  8. anon
    Replies:
    0
    Views:
    321
Loading...