Microsoft Access Forums

Go Back   Microsoft Access Forums > Access Forums > Forms

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 03-10-2009, 12:41 PM
skyrise skyrise is offline Windows Vista Access 2010 (version 14.0)
Novice
 
Join Date: Feb 2009
Posts: 22
skyrise is on a distinguished road
Default Change Color of a Command Button when Receives Focus?

I have command buttons that receive focus based on a Tab Order. Right now it is difficult to tell that cursor has “landed” on the button. I checked the Properties list, but could not see anything that was specific to color selection. Is there a way to change the color of the button when it receives the focus (or some other event)?
Reply With Quote
  #2  
Old 03-10-2009, 02:05 PM
skyrise skyrise is offline Windows Vista Access 2010 (version 14.0)
Novice
 
Join Date: Feb 2009
Posts: 22
skyrise is on a distinguished road
Default

(TY: Linq Adams, alansidman [will use this in the future], and pere_de_chipstick)

I’m working with command buttons as text (not as pictures). I was able to use the following code that works when both tabbing onto the button and clicking the button with the mouse pointer.

Private Sub GoToTab3_GotFocus()
GoToTab3.FontSize = 9
GoToTab3.FontBold = True
GoToTab3.ForeColor = vbRed
End Sub


Private Sub GoToTab3_LostFocus()
GoToTab3.FontSize = 10
GoToTab3.FontBold = False
GoToTab3.ForeColor = vbBlack
End Sub

(alansidman: http://www.datapigtechnologies.com/f...etobutton.html)
Reply With Quote
  #3  
Old 03-10-2009, 03:14 PM
skyrise skyrise is offline Windows Vista Access 2010 (version 14.0)
Novice
 
Join Date: Feb 2009
Posts: 22
skyrise is on a distinguished road
Default

Correction:

Add the “http://” in your browswer if needed.

www.datapigtechnologies.com/flashfiles/imagetobutton.html
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a command button to Browes for file sawill Programming 3 03-15-2009 03:02 PM
change cell color bishop743 Programming 0 02-01-2009 08:00 AM
Duplicate command button brettg Database Design 1 08-04-2008 02:16 AM
Command button code lfolger Forms 3 03-25-2008 02:26 PM
Command button for time & date joet5402 Forms 2 12-19-2007 11:59 PM


All times are GMT -8. The time now is 02:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.