Public Sub New()
' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
Dim t As New Threading.Thread(AddressOf Start)
t.Start()
End Sub
Private Delegate Sub StartDelegate()
Private Sub Start()
If Me.InvokeRequired = True Then
Invoke(New StartDelegate(AddressOf Start))
Else
For i = 0 To 10000000 Step 1 : Me.Text = i : Next i
End If
End Sub
When I start the program it runs and start to count but U can't move the form and there are no cross thread errors.
Thanks in advance.