Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,
As we focus on any textbox we can change the background colour as detail under.

Private Sub TextBox2_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.GotFocus
TextBox2.BackColor = Color.GreenYellow
End Sub

Now if I have more than 25 textboxes and I want to change background of the textbox on movement of mouse on that how to do that.

Kindly explain with an example.
Posted

1 solution

Create a CSS and do an onmouseover event.

You may need to create the textarea as an ID and call that, but it is fairly simple.
 
Share this answer
 
v2
Comments
Jatinder Gupta 15-Sep-10 6:37am    
Thanks but kindly explain with an example
Sandeep Mewara 15-Sep-10 14:21pm    
Just like OnFocus event code you have, try for OnMouseOver event. What sample is needed for this? Try!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900