User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 391,713 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,441 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser:
Views: 6445 | Replies: 1
Reply
Join Date: Jun 2006
Posts: 1
Reputation: pretom is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
pretom pretom is offline Offline
Newbie Poster

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

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2002
Location: West Virginia
Posts: 368
Reputation: waynespangler is on a distinguished road 
Rep Power: 6
Solved Threads: 34
waynespangler waynespangler is offline Offline
Posting Whiz

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

  #2  
Jul 4th, 2006
Try this:
    Private Sub ChangeBackcolorRed(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.MouseEnter, TextBox2.MouseEnter, TextBox3.MouseEnter
        sender.backcolor = Color.Blue
    End Sub

    Private Sub ChangeBackcolorWhite(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.MouseLeave, TextBox2.MouseLeave, TextBox3.MouseLeave
        sender.backcolor = Color.White
    End Sub
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb VB.NET Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 3:14 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC