English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

what is the event procedure when pressing tab it it changes the text box to a different color ? Thanks

2007-08-28 19:28:05 · 2 answers · asked by yahooquestionsforyou 1 in Computers & Internet Programming & Design

2 answers

One way is you can use the _Lostfocus option

Text1.Backcolor= Qbcolor(9)

The 1 to 15 colors

I hope this helps

2007-08-28 20:47:19 · answer #1 · answered by Owl 4 · 0 0

hi,
Try the following:
----------------------------------------------------------------
Private Sub Text2_GotFocus()
Text2.BackColor = RGB(Rnd(15) * 500, Rnd(15) * 500, Rnd(15) * 500)
End Sub
-----------------------------------------------------------------
On pressing TAB, when focus will go to next box, its back colour will be different with the previous one.

2007-08-29 07:10:06 · answer #2 · answered by iqbal 4 · 0 0

fedest.com, questions and answers