Results 1 to 11 of 11
  1. #1
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239

    Tab order 0 - border of command button

    Hello,



    My form's Tab index 0 is Command button, and Access makes dashed border around It, when form is opened. Can I turn that off - no border desired ??

    Thanks for help !

  2. #2
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Set "Tab Stop" property to No.

  3. #3
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239
    Tried that allready, not working.

  4. #4
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Then I believe there's no way to get rid of that border. It's how it indicates that control has focus. Only way is to set focus to something else on open, but still if it's button - you'll get the border, if textbox - cursor inside it.

  5. #5
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239
    Yes, that's what I think too. I have only buttons, so borders appears allways. Anybody else, any solution ?

  6. #6
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Create another button with no action, set its Transparent, Border Style and Back Style properties to Transparent and set focus to it in Form Open event.
    Edit:
    Oh, and set Tab Stop property of other buttons to No so when user presses Tab they won't get focus (and that border).

  7. #7
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239
    tried that too, I got rid off borders at start, but when I click on other buttons border appears again, Tab Stop property to NO doesn't work

  8. #8
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    That's right, when you click on button it gets focus and border. But in your OP you wanted that border to not appear on form open and it won't this way. But you can't remove it permanently, at least I can't find any method to do it.

  9. #9
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239
    Do you know any method to change dashed border to solid ? At least this would be better.

  10. #10
    cyanidem's Avatar
    cyanidem is offline Competent Performer
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2015
    Location
    Consett, UK
    Posts
    270
    Unfortunately I don't think there is any. Actually it's not even Access but Windows "feature". You want to know which control has the focus as pressing Enter or Space while focus is on the button is equivalent to clicking it.

  11. #11
    Lukael is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    239
    Figured out - on any code that triggers focus I had to set focus on that Transparent CmdButton, and no button gets It's borders


    Thanks for help cyanidem !!

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

Similar Threads

  1. Replies: 1
    Last Post: 09-12-2014, 06:09 AM
  2. Replies: 3
    Last Post: 08-04-2013, 07:11 AM
  3. Replies: 7
    Last Post: 10-03-2011, 12:44 PM
  4. Command Button Border Transparency Issue!
    By JeffG3209 in forum Database Design
    Replies: 4
    Last Post: 06-29-2011, 07:50 PM
  5. Replies: 1
    Last Post: 07-27-2010, 02:27 PM

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