That was probably bad title, but I'll illustrate what I'm trying to do. I have a method in a class that I need to call several times. The method returns a List(Of String). I'm just grabbing some information from a database.

VB.NET Code:
  1. Public Function GetTestList() As List(Of String)
  2.         Dim int As Integer = 0
  3.  
  4.         Dim cso_list As New List(Of String)
  5.  
  6.         Dim connection As New Connection()
  7.         Dim record_set As New Recordset
  8.         connection.Open("...")
  9.         record_set.Open("...", connection)
  10.         With record_set
  11.             Do While Not .EOF And Not int = 100
  12.                 int = int + 1
  13.                 cso_list.Add(CStr(record_set("...").Value))
  14.                 .MoveNext()
  15.             Loop
  16.         End With
  17.         connection.Close()
  18.  
  19.         Return cso_list
  20.     End Function

You can see in that method that I'm getting the values from the database, adding it to the new list and returning that list.

I then assign that list to a variable in my main class and loop through them.

VB.NET Code:
  1. Dim records As List(Of String) = Me.test.GetTestList
  2.        
  3.         For Each str In records
  4.            'Do stuff
  5.         Next

When looping through the items, I'm showing them in the UI. But that's the quick and easy part. The long part is actually gathering the list. So I want to display the value without returning the list.

Is there a way to do this without updating the UI from the method?