title: Using TASK class in VB.NET async
body: <p>This is my first post here, so i hope to be very explicit about my problem.</p>
  
  <p>Currently i'm working with a database, and at some point, i'm having some problems with the latency because of the data amont. </p>
  
  <p>What i want is, when i press a button in the MainForm to call separate Task that takes a method that populates a comboBox in another form, and then display that form.</p>
  
  <p>Here is the code :</p>
  
  <pre><code>Private Sub PopulateCmb()
      For Each value As Integer In servRefrence.PopulateID_Masini
          Form_Insert.ComboBox1.Items.Add(value)
      Next
      &lt;&lt;This is taking 3-4 seconds&gt;&gt;
  End Sub
  
  Private Async Sub BtnInsert_Click(sender As Object, e As EventArgs) Handles BtnInsert.Click
  
      Dim task As Task = New Task(New Action(AddressOf PopulateCmb))
      task.Start()
      LblInfo.Text = "Please Wait"
      Await task
  
      LblInfo.Text = "Idle"
      Form_Insert.Show()
  
  End Sub
  </code></pre>
  
  <p>This method : servRefrence.PopulateID_Masini is returning a list of integers that comes from the webserver...</p>
  
  <p>The problem with this code is that when the task is finished, the combobox within the Form_Insert comes back empty! </p>
  
  <p>What am i missing??...I think is maybe because you cannot make use of a task within the mainForm(for ex.), and try to "modify" some data in a second form...but i'm not sure...</p>
  
  <p>==I am using Visual Studio 2012==  Template : Visual Basic </p>
  
  <p>Please help!</p>
  
  <p>Thank You!!!</p>