Hello, everyone!
My mission is to give agility and fluency to a software ... leave it without those constant fights in each For ...
For this I created a problem and would like to know if anyone can solve it. The solution will apply to a large part of my system
The function below is responsible for performing several complex calculations, and when called, locks the form completely. The challenge is to run this in the background and still get the answer: (true / false)
Public Function MinhaFuncao() As Boolean
Try
'Realiza os cálculos'
Return True
Catch ex As Exception
Return False
End Try
End Function
I've tried using Threads ... It looks something like this:
Dim minhaThread As Threading.Thread
minhaThread = New Threading.Thread(AddressOf MinhaFuncao)
minhaThread.IsBackground = True
minhaThread.Start()
In fact it worked! But no response came back to me ...
Well, thank you in advance!