Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > create enumerated property for custom control

Reply
Thread Tools

create enumerated property for custom control

 
 
Sergey Poberezovskiy
Guest
Posts: n/a
 
      11-07-2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enumerated type in a custom control tag Rex the Strange ASP .Net 3 07-25-2008 10:38 PM
create enumerated property for custom control Sergey Poberezovskiy ASP .Net Building Controls 6 12-30-2005 02:36 AM
Custom Control : One custom property to array of controls anon ASP .Net Web Controls 0 01-15-2005 11:32 AM
Keep custom property-value in custom rendered control Rob Joosen ASP .Net Building Controls 0 05-12-2004 11:56 AM
ControlDesigner not invoked on custom control when control is rendered within another custom control Matt Sokol ASP .Net Building Controls 2 08-07-2003 07:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57