Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Developer Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Changing Button Backcolors When Tabing!
Werner Mildt 
      
7 hours ago
When tabbing true Buttons, it's very hard to see which Button is selected.
I have created a Combo Box to change the Back Colors at at runtime.
Everythink works perfect, but the code below
needs to be put in every Button.
So, if you have a lot of Buttons in your application it is a
lot of recurring work.
It would be nice to have a function to do the job.
If I could get any help with this, I would appreciate.
I don't have enough knowledge to create functions.
Thangs

Werner Mildt OP  @Reply  
      
7 hours ago

Werner Mildt OP  @Reply  
      
7 hours ago

Alex Lewis  @Reply  
       
7 hours ago
Put the following code in a global module so your entire database can use it:

Public Function SetBtnColor(Btn as Control, R as Long, G as Long, B as Long)

TempVars(“BFColor”) = HexToRGB(R, G, B)

With Btn
.BackColor = TempVars(“BFColor”)
.BorderColor = TempVars(“BFColor”)
End With

End Function

Rick’s Hex to RGB function is in the code vault.
John Davy  @Reply  
         
3 hours ago
Hi Werner, you might also want to look at the properties of the button to see whether adjusting the properties: Under Format: Hover Color, Hover fore Color, Pressed Color.  That's what I do to make it pop when I am on the button.  HTH John
Matt Hall  @Reply  
          
3 hours ago
Do you use the same colors and behavior for each button?
Add a Reply Upload an Image
Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/11/2026 1:47:17 AM. PLT: 0s