title: Using statement in Visual Basic
body: <p>I'm having difficultly with the using statement in Visual Basic. Does anyone know how this should be written?:</p>
  
  <pre><code>Using (Dim doc As WordprocessingDocument = WordprocessingDocument.Open(filename, True))
  //blah blah
  End Using
  </code></pre>
  
  <p>The code works fine without the using and its obviously as syntactic error. "Dim" is highlighted, and an expression is expected apparently. Sorry if this a bit basic, but the info on vb using statements is not clear and its obviously doesn't work in the c# style.</p>