Results 1 to 3 of 3
  1. #1
    skyrise is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Feb 2009
    Posts
    22

    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)?

  2. #2
    skyrise is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Feb 2009
    Posts
    22
    (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)

  3. #3
    skyrise is offline Novice
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Feb 2009
    Posts
    22
    Correction:

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

    www.datapigtechnologies.com/flashfiles/imagetobutton.html

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Create a command button to Browes for file
    By sawill in forum Programming
    Replies: 3
    Last Post: 03-15-2009, 05:02 PM
  2. change cell color
    By bishop743 in forum Programming
    Replies: 0
    Last Post: 02-01-2009, 11:00 AM
  3. Duplicate command button
    By brettg in forum Database Design
    Replies: 1
    Last Post: 08-04-2008, 04:16 AM
  4. Command button code
    By lfolger in forum Forms
    Replies: 3
    Last Post: 03-25-2008, 04:26 PM
  5. Command button for time & date
    By joet5402 in forum Forms
    Replies: 2
    Last Post: 12-20-2007, 02:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums