Hi
when I create a timer can i just paste some code into it and it will constantly refresh itself I.E evry 50 millisecond ?
Example:
(I know the code abowe is somewhat unclean but thats not important right now)Code:Private Sub tmrCheck_Timer() NumberOfUsers = frmUsers.txtOperator.Count - 1 For i = 0 To NumberOfUsers If Text2.Text = frmUsers.txtOperator(i).Text & " : " Then If Text2.Text = frmUsers.txtOperator(i).Text & " : " & "?help" Or frmUsers.txtOperator(i).Text & " : " & Text2.Text = "?Help" Then Text1.Text = "This is the help menu" Send_Click Else End If End If Next i End Sub
because I need the code to constantly search the text box for that string and using a loop function did just hang the computer
im not used to use timers (hardly use them at all)
some help would be appreciated
Thanks.
-Lumin





Reply With Quote