I'm a bit rusty to visual basic, however I need to use it for a project I'm working on that requires a .NET language.
I noticed when writing a bit of code to update the text value of a textbox in a windows fourm application
'weve read the stuff...now lets update the textbox with the ADC value
DataQSingleDevice.GetInterleavedBinaryData(BinaryData, 0, 18)
DataQSingleDevice.Stop()
DATAQHandler(0).Disconnect()
'now lets throw data in the textbox
Button1.Text = "Connected!"
For incramenter As Integer = 0 To 10
TextBox1.Text = BinaryData(incramenter)
Threading.Thread.Sleep(2000)
Next
end sub
that when I go through this for loop above me, it doesn't update the text value at every iteration. I assume that means that it can only do it after the method that this sub is in has finished.
I remember from Android programming in Java that property modifications like this usually implement on the main UI thread buried super deep inside a never ending for loop that only GOD himself and the inventor of the java language could ever hope to find. I also remember that methods like AsyncTask<> and Java.util.concurrent allowed me to do things on a background thread and update certain views.
My question:
Is there a way to update the property of things in visualBasic on a GUI such as "TextBox1.Text" similar to how some views in Android programming can be periodically updated with background threads? (this process may span a couple minutes of updating...this example only lasts 20 seconds but my practical usage could last 10 minutes)