I would like to know how I can get the list of possible choices to Intellisense for my class object, like it does with MsgBox. For example, when creating a message box you type MsgBox "Test Message Text", vbYesNo, "Test Message Title"
In typing that, when you type the comma just before the vbYesNo, it gives you the possible selections for button types in a drop down list: i.e., vbYesNo, vbOKOnly, etc...
I have a class called clsKeyState. what it does is turn on/off/toggle key states, such as CAPS LOCK, SCROLL LOCK, NUM LOCK, etc... I have set my property for it as Get/Let "State". When I call it to set a key to on/off I will be doing it like
this:
KeyState.State WhichKey, On/Off/Toggle.
I would like the WhichKey part to automatically display all the possible selections that I define, such as CapsLock, NumLock, Scroll Lock; and I want the On/Off/Toggle to display those specific items also (On, Off, Toggle).
Please help, I will be using the ability to create these displayable options for many more things in my project than just this one simple class.
David Wisniewski