How Vb.NET Textbox background color change when TabStop come?

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2006
Posts: 1
Reputation: pretom is an unknown quantity at this point 
Solved Threads: 0
pretom pretom is offline Offline
Newbie Poster

How Vb.NET Textbox background color change when TabStop come?

 
0
  #1
Jul 2nd, 2006
I have 3 textbox. I want to change Background color when cursor go there, other wise there will be no change.
How can i do this?

My mail address pretom82@hotmail.com
Reply With Quote Quick reply to this message  
Join Date: Dec 2002
Posts: 461
Reputation: waynespangler is on a distinguished road 
Solved Threads: 56
waynespangler waynespangler is offline Offline
Posting Pro in Training

Re: How Vb.NET Textbox background color change when TabStop come?

 
0
  #2
Jul 4th, 2006
Try this:
  1. Private Sub ChangeBackcolorRed(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.MouseEnter, TextBox2.MouseEnter, TextBox3.MouseEnter
  2. sender.backcolor = Color.Blue
  3. End Sub
  4.  
  5. Private Sub ChangeBackcolorWhite(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.MouseLeave, TextBox2.MouseLeave, TextBox3.MouseLeave
  6. sender.backcolor = Color.White
  7. End Sub
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC