title: Can ActiveX properties (to be accessed from Visual Basic) be procedurally generated at run-time?
body: <p>Does anyone know if it is possible to generate ActiveX properties at run-time?  </p>
  
  <p>I only need to be able to get and set these properties from Visual Basic.  </p>
  
  <p>My ActiveX control is coded in C++ and I already know how to create properties by implementing hard-coded C++ get and put functions. However I have potentially a large set of properties for this ActiveX control and ideally the property set exposed will change depending on the internal state of the ActiveX control.</p>
  
  <p>I am hoping there is a way to generate properties from data, such as the following XML:</p>
  
  <pre><code>&lt;Properties&gt;
      &lt;Property&gt;
          &lt;Name&gt;SomeProperty&lt;/Name&gt;
          &lt;Type&gt;Int&lt;/Type&gt;
          &lt;DefaultValue&gt;10&lt;/DefaultValue&gt;
      &lt;/Property&gt;
  
      ...
  
  &lt;Properties&gt;
  </code></pre>
  
  <p>Thanks</p>