-
Focus Of Command Buttons
What I am looking for is to never have focus on a command button. So if you click on 1 it wont stay set on it at all it just clicks then loses the focus. Is there a way so that a command button can never recieve the focus? Well thanks guys I appreciate it! :)
-
All you can do is set a Timer that does a SetFocus every 500 milliseconds or so to the item you would rather it focus on
-
I assume you don't want to prevent the user from clicking them. If you want to prevent them from otherwise receiving focus just change their TabStop property to False and if you don't want focus to remain there after they are clicked, put something like Text1.Setfocus in their GotFocus event.
-
1 Attachment(s)
If it is worth the effort to you, the attached sample project shows how to do this by subclassing the button. (Read the readme file before running the project.)