Ive been searching for days finding some answers to my question: pls. help.

Im making an active-x control, in my usercontrol i have a command button, i want that command button to have a property named 'CommandFunction' with that property there is a user selectable dropdown menu which have 'Restart_PC', 'Log_Off_PC' and 'Shutdown_PC'. As we know these list, the button must behave to Restart or Log_off or Shutdown the PC, can anyone help me with this?

im trying to study abt it and all i know i have to create an enum for this

Public Enum cmdAPIfunction
Restart_PC = 1
Shutdown_PC = 2
Log_Off_PC = 3
End Enum

and please i really dont understand propert let and get procedure. pls help. thanks!!