Dov_B
asked on
how do you associate a variable with an enumeration so that when you type myVariable=the enumerations pop up with intellisense
I am using vb.net and am a real novice
I have the following code
Public Enum mMode
editWord
editLine
playWord
playLine
End Enum
then I have a variable called myMode
and I type myMode=mMode.editWord
How do you code it so that as soon as I type myMode= all the possible mMode enumerations pop up?
I have the following code
Public Enum mMode
editWord
editLine
playWord
playLine
End Enum
then I have a variable called myMode
and I type myMode=mMode.editWord
How do you code it so that as soon as I type myMode= all the possible mMode enumerations pop up?
when you type the enimeration name and hit the "dot" you will get a list of items inside the enum.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Actually, ignore my comment, and code!!
Got confused with the wrong thing..Argh!
When you type "MyMode=" it should automatically come up with a list of enumerations...It does with me?
Thanks.
Got confused with the wrong thing..Argh!
When you type "MyMode=" it should automatically come up with a list of enumerations...It does with me?
Thanks.
Thanks Dov_B,
Hope all goes well.
Hope all goes well.