General discussion

Locked

ActiveX Programming

By v4vickey ·
Respected Programmers i m in trouble to create a custom text box in vb6 that change it colors on got focus and lost focus these properties are set during design time

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Juergen Hartl In reply to ActiveX Programming

You do NOT have to create a new Control.
Just change the BackColor on GotFocus and LostFocus events.

Private Sub Text1_GotFocus()
Text1.BackColor = &H8080FF
End Sub

Private Sub Text1_LostFocus()
Text1.BackColor = &H0
End Sub

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums