|
-
Jan 3rd, 2000, 03:36 PM
#1
Thread Starter
Junior Member
friends,
vb 6.0 is front end.
All the text fields have a different backcolor. When the focus comes to a text field, i change to the normal color( the code for which has bn written in gotfocus event). Certain fields remain colored with the focus on it.
Doevents in the lost focus of previous field did not help.
any suggestions?
friendly,
jey.
-
Jan 4th, 2000, 01:24 AM
#2
Member
Post part of ur code.
In one of my project, I have done same thing with no problem.
my code is like this
Private Sub txtCust_GotFocus(Index As Integer)
'** Change BackColor to white
txtCust(Index).BackColor = &HFFFFFF
'** Select all text on focus
SendKeys "{home}+{end}"
End Sub
Private Sub txtCust_LostFocus(Index As Integer)
'** Change BackColor to light gray
txtCust(Index).BackColor = &HE0E0E0
End Sub
Joon
-
Jan 4th, 2000, 04:51 PM
#3
Member
Hai
Some of my projects I used this way.I am changing it when it got the focus.
private sub text1_gotfocus()
text1.backcolor = vbred
end sub
I didn't get any problem.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|