kahlua001 Posted August 12, 2004 Posted August 12, 2004 This doesnt just pertain to asp.net but I thought I would put it here anways. In my custom control, how do I specify a list of values for a Property so that in code when i set that property, after the " = " Intellisense displays a list of available properties? Thanks Quote
Administrators PlausiblyDamp Posted August 12, 2004 Administrators Posted August 12, 2004 Easiest way is create an enum which contains the values you want to be able to assign to the property, then use this enum as the property type and things should work. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
kahlua001 Posted August 12, 2004 Author Posted August 12, 2004 Do you have a quick sample I can learn from? Quote
kahlua001 Posted August 12, 2004 Author Posted August 12, 2004 Thanks I got it! How do I add a empty value ? Also how can I use values like "Decimal" which is a reserved word already? Quote
Joe Mamma Posted August 12, 2004 Posted August 12, 2004 use c#!!!!!! Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Joe Mamma Posted August 12, 2004 Posted August 12, 2004 By the way. . . what are you trying to model? Quote Joe Mamma Amendment 4: The right of the people to be secure in their persons, houses, papers, and effects, against unreasonable searches and seizures, shall not be violated, and no warrants shall issue, but upon probable cause, supported by oath or affirmation, and particularly describing the place to be searched, and the persons or things to be seized. Amendment 9: The enumeration in the Constitution, of certain rights, shall not be construed to deny or disparage others retained by the people.
Denaes Posted August 12, 2004 Posted August 12, 2004 use c#!!!!!! You could at least explain why! C# is case sensitive. decimal is different than Decimal. For this reason it makes some things a lot nicer, especially with properties and member variables. private int tires public int Tires in vb you need two seperate words for variables. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.