frederick, have you tried typing IDKind. int he method signature? After you
type the Enum name it will give you a drop down of the valid values.
--
Greg Ewing [MVP]
http://www.citidc.com
"msnews.microsoft.com" <frederick@qpop.com> wrote in message
news:O9H42yUeDHA.3592@tk2msftngp13.phx.gbl...[color=blue]
> How do I get Intellisense to open a dropdown list box for a method's
> parameters when the parameter is an ENUM?
>
> public class MyClass
> {
> public enum IDkind
> {
> PersonID,
> EntityID,
> PlaceID
> }
>
> /// <summary>
> /// Gets an ID value of a particular KIND
> /// </summary>
> /// <param name="K">The kind of ID desired</param>
> public int IDget(IDkind K)
> {
> return (int) IDsArray.GetValue(new int[] {(int) K});
> }
> }
> ===========================
>
> Then, in another location I type:
>
> MyClass.IDkind IDtype = MC.IDget(
>
> When I type the last parenthesis above, Intellisense automatically opens[/color]
and[color=blue]
> shows me the Method's Signature and my parameter's description, like this:
>
> int MyClass.idGet(MyClass.IDkind K)
> K: The kind of ID desired
>
> That's fine .... but now I want Intellisense to open a dropdown list of[/color]
the[color=blue]
> valid MyClass.IDkind enum's to choose from.
>
> How?
>
>[/color]