I'm having trouble with performance in VB. I want to do a big loop with some math inside it. At the same time I want to display the result in a label.
Why can't VB manage to show the label until the loop has ended? Help me somone!
Down below is an example:
Private Sub Command1_Click()
For i = 1 To 2000000
For x = 1 To 10
a = a + i * x
Next x
Label1.Caption = a
Next i
End Sub
