Hi, i am using a timer
That resets my forms settings. But because it is on a different thread i get cross thread exception.
How can i resolve this?
VB.NET:
aTimer= New System.Timers.Timer(5000)
AddHandler aTimer.Elapsed, AddressOf OnTimedEvent
aTimer.Enabled = True
That resets my forms settings. But because it is on a different thread i get cross thread exception.
How can i resolve this?
VB.NET:
myButtons(True)
VB.NET:
Private Sub myButtons(ByVal d As Boolean)
For Each c As Control In me.Controls
CType(c, Button).Enabled = d
Next c
End Sub