title: vb.net create a reference to an object
body: <p>I need to create a reference to object, where Prog2 is a reference to Prog1  Here what I need:</p>
  
  <pre><code>dim Prog1 as myclassprogressbar
  dim Prog2 as myclassprogressbar
  
  Prog1.initialize()
  Prog1.max=10
  Prog1.min=1
  Prog1.value=5
  
  Prog2.initialize()
  Prog2.max=10000
  Prog2.min=100
  Prog2.value=500
  
  
  Prog2=Prog1
  
  Prog1.value=7
  
  
  debug.print Prog2.value
  
  7
  </code></pre>
  
  <p>Is possible create a reference to an object like this code ?</p>