Link to home
Start Free TrialLog in
Avatar of Dov_B
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?
Avatar of mirzas
mirzas
Flag of Bosnia and Herzegovina image

when you type the enimeration name and hit the "dot" you will get a list of items inside the enum.
ASKER CERTIFIED SOLUTION
Avatar of brenz08
brenz08
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
Thanks Dov_B,
Hope all goes well.