Hi all!
I want to select a component always, when my timer elapses. Unfortunately, this seems not to work. When I select the component in a Button.OnClick-Event, it works. I don't understand this!
Can someone please help me and tell me how to do it right?
Thanx, Fazzyer
I want to select a component always, when my timer elapses. Unfortunately, this seems not to work. When I select the component in a Button.OnClick-Event, it works. I don't understand this!
VB.NET:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox2.Select() 'works
End Sub
Private Sub ontimer(ByVal sender As Object, ByVal e As System.Timers.ElapsedEventArgs)
TextBox2.Select() 'works NOT
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
t.Start()
AddHandler t.Elapsed, AddressOf ontimer
End Sub
Can someone please help me and tell me how to do it right?
Thanx, Fazzyer