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 !
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 !
Set "Tab Stop" property to No.
Tried that allready, not working.
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.
Yes, that's what I think too. I have only buttons, so borders appears allways. Anybody else, any solution ?
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).
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
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.
Do you know any method to change dashed border to solid ? At least this would be better.
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.
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 !!