title: C# to VB.net delegate sub
body: <p>I'm continuing to try to learn VB.net, and I visit here often.</p>
  
  <p>So, I'm back again, with a slightly different question.  I received great help previously, and hope to avail myself again.</p>
  
  <p>I have this CSharp code:</p>
  
  <pre><code>public delegate void MyHandler(string DataLine);
  foo.Handler = new MyHandler(MySub);
  void MySub(string DataLine);
  </code></pre>
  
  <p>(When I hover over "MyHandler", the VS helper says "MyHandler.MyHandler(void (string) target)"</p>
  
  <p>I want to set up the delegate in VB.net, but I can't seem to relate the three items so they all work together:</p>
  
  <pre><code>Private Delegate Sub MyHandler(ByRef DataLine as string)
  ??????  as MyHandler
  Private Sub MySub (ByRef DataLine as string)
  </code></pre>
  
  <p>Does the "??????" need to be a Dim {something}, or a Declare {something} or ???  Or is there an error in one of the other two lines?</p>
  
  <p>(Let me know if there is any missing info)</p>
  
  <p>Thanks</p>
  
  <p>Charlie</p>