title: Issue in Dynamic loading ActiveX in VB6.0
body: <p>I have following method which I am using to load ActiveX control dynamically,</p>
  
  <pre><code>Dim ctl As Control
  Set ctl = Form1.Controls.Add("prog.id", "myctl")
  ctl.Visible = True
  </code></pre>
  
  <p>Using this code control successfully display on the form, but when I try to access methods/properties of control <code>ctl.mymethod()</code> its give the error, “Object doesn’t support this method or property".</p>
  
  <p>Secondly when I use this approach</p>
  
  <pre><code>Dim ctl As Object
  Set ctl = CreateObject("prog.id")
  Ctl.mymethod()
  </code></pre>
  
  <p>Here method successfully called from control, but I can’t display this object on form.</p>
  
  <p>Kindly tell me any solution about this issue.</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Using the following approch its also giving the error when I call methods, "Object does't support........"</p>
  
  <pre><code>Dim ctl As Object
  Set ctl = Controls.Add("prog.id", "myctl")
  ctl.Visible = True
  </code></pre>