D
dbuchanan
Hello,
What event do I use to change the backcolor of a text box when I leave
it using any possible method.
I want to change the backcolor of the control to the color of the form
when the user leaves the control. Neither LostFocus or Leave works!
Why?
Here is the code...
Private Sub txtComponentDescription_LostFocus(ByVal sender As Object,
ByVal e As System.EventArgs) Handles txtComponentDescription.LostFocus
Me.txtComponentDescription.BackColor = Me.BackColor
Me.txtComponentDescription.Enabled = False
End Sub
The BackColor does not change as desired but the control does become
disabled.
How do I make this work?
dbuchanan
What event do I use to change the backcolor of a text box when I leave
it using any possible method.
I want to change the backcolor of the control to the color of the form
when the user leaves the control. Neither LostFocus or Leave works!
Why?
Here is the code...
Private Sub txtComponentDescription_LostFocus(ByVal sender As Object,
ByVal e As System.EventArgs) Handles txtComponentDescription.LostFocus
Me.txtComponentDescription.BackColor = Me.BackColor
Me.txtComponentDescription.Enabled = False
End Sub
The BackColor does not change as desired but the control does become
disabled.
How do I make this work?
dbuchanan