Develop ActiveX elements -> Example: LatchedSwitch -> The methods -> MaxVariables
Two variables can be used. Therfore 2 is returned.
short CLatchedSwitchCtrl::MaxVariables()
{
return 2; // 2 variables
}