title: VB.NET Nested With statements from different scopes
body: <p>I am wondering if this is possible.  I have a List Table (lstTable) that is on the same form that I am trying to fill in with information from a public structure (ELEM_DATA).  I understand nested with statements will work if it is within the same scope but how can I do this with example 2 below:</p>
  
  <p>Example 1:</p>
  
  <pre><code>With me.lstTable.Items(RECORD)
       .SubItems(1).text = ELEM_DATA(RECORD).name
       .SubItems(2).text = ELEM_DATA(RECORD).number
  end with
  </code></pre>
  
  <p>Example 2:</p>
  
  <pre><code>With me.lstTable.Items(RECORD)
       With ELEM_DATA(RECORD)
       .SubItems(1).text = .name
       .SubItems(2).text = .number
       end with
  end with
  </code></pre>
  
  <p>I didnt know if it is possible or if it would be as simple as changing (.name) to something else.</p>