title: Lambda multiline as Thread parameter?
body: <p>Time ago I've seen a multi-threading technique code like this:</p>
  
  <pre><code>Private Delegate Sub TextBoxUpdateUI(ByVal txt As String)
  
  Private t As Threading.Thread = New Threading.Thread(Sub() _
          If tb2.InvokeRequired Then 
              Dim tb_delegate As New TextBoxUpdateUI(AddressOf "This Sub")
              tb2.Invoke(tb_delegate, Text)
          Else
              tb2.Text = tb1.Text
          End If _
  )
  </code></pre>
  
  <p>The thing is that, be able to write some instructions inside the Thread argument, I don't remember well the example that I've seen but if I remember well it used a <code>Lambda</code> like I've tried to use.</p>
  
  <p>But the code above does not work, just I wanted to reproduce it, but I lost the example that I've seen so I don't know exactly how to write it.</p>
  
  <p>Someone can fix the lambda?</p>
  
  <p>Also, at the delegate line in the <code>AdressOf</code> operator how could I fix it to refer to that? </p>