Ama
|
UBERLÂNDIA MG - BRASIL
|
|
Postada em 07/06/2008 01:35 hs
Private Sub Timer1_Timer() Dim txtName As String Dim txt As TextBox Dim ctl As control If TypeOf Form2.ActiveControl Is TextBox Then txtName = Form2.ActiveControl.Name For Each ctl In Form2 If txtName = ctl.Name Then ctl.BackColor = vbYellow ctl.ForeColor = vbBlue Else If TypeOf ctl Is TextBox Then ctl.BackColor = vbWhite ctl.ForeColor = vbBlack End If End If Next End Sub
|
|
|
|
Treze
|
SÃO VICENTE SP - BRASIL
|
|
Postada em 07/06/2008 11:09 hs
Amauri arrebentou cara, sabe que já usei esta função porém nuca tentei colocar em timer, legal resolveu problema do colega, parabens.
|
|
|
|
Postada em 08/07/2008 11:09 hs
Muito obrigado galera.......
ae o Ama arebento em... rere
"Se fizeres o bem, não é certo que serás aceito? E se não fizeres o bem, o pecado jaz à porta, e sobre ti será o seu desejo; mas sobre ele tu deves dominar - Gênesis 4.7"
|
|
|