Vb net label not updating

27 Jan

Public Class label Scroll Inherits Label Public Shadows Property Text As String Get Return My Base.

vb net label not updating-26vb net label not updating-81vb net label not updating-82vb net label not updating-53

Is Busy True Then ' Start the asynchronous operation. Run Worker Async() End If End Sub Private Sub background Worker1_Do Work(By Val sender As System.

Load ' Create two buttons to use as the accept and cancel buttons.

Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on.(Inherited from Control.)Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.(Inherited from Control.)Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

What actually should happen is that when the user clicks the button, "1" appears and then Setting the text on a label invalidates the control - meaning it will redraw the next time the event queue is processed (effectively).

Text = "3" End Sub What happens when I click the button is that it takes 2 seconds and then just shows "1" "2" "3" on three lines.